www.webdeveloper.com

Search:

Type: Posts; User: unasAquila

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. A. The number of rentals entered you have done...

    A. The number of rentals entered
    you have done this.

    As for the next 3 I don't understand how you want this to work as sessions are only alive for the life of the browser window being open.
    B....
  2. First not sure how you Professor feels about...

    First not sure how you Professor feels about standards and best practices but there are a fair few that you should really address.
    a few mistakes i have noticed at a cursory glance.

    ...
  3. what problem are you having exactly? also in...

    what problem are you having exactly? also in future (as your new you may not have known) use [ php ] code here [ /php ] without space's inside the brackets.
    it also help make debugging easier.
    NO...
  4. Thread: Filter

    by unasAquila
    Replies
    3
    Views
    567

    ? you want us to do your work for you because you...

    ? you want us to do your work for you because you want to filter you results if your using SQL then you need to use the LIKE function which will return a result set with what is being search for....
  5. Replies
    2
    Views
    638

    wouldn't str_replace (http://php.net/str_replace)...

    wouldn't str_replace Be a lot easier?



    str_replace('&', '&', 'http://www.example.com/search.php?query=Hello&world&this&is&a&test');
  6. Thread: Filter

    by unasAquila
    Replies
    3
    Views
    567

    check out Pattern matching...

    check out Pattern matching
  7. Replies
    4
    Views
    622

    as @bionoid's said your mixing request variables....

    as @bionoid's said your mixing request variables.
    if your using get use $_GET or if your using post $_POST


    <?php
    if (isset($_GET['submit'])) { ...
  8. Replies
    4
    Views
    622

    you can use LIMIT with single int values in a...

    you can use LIMIT with single int values in a DELETE query, unlike a SELECT where you can use a range
  9. Replies
    4
    Views
    906

    use isset or empty to make sure that variables...

    use isset or empty to make sure that variables have values.


    if(isset($_POST['update']))
    {
    // Get values from form
    $name= isset($_POST['name']) ? $_POST['name'] : 'Set...
  10. Replies
    1
    Views
    649

    you could create an array $inputs = array();...

    you could create an array


    $inputs = array();
    if ($result){
    while ($row = mysqli_fetch_array($result)) {
    $inputs['name'] = $row['name'];
    $inputs['moba'] = $row['moba']; ...
  11. Replies
    12
    Views
    1,996

    you havent closed it

    you havent closed it



    <p> <strong><font color ='grey'>First</strong> => {$first}</p>




    <p> <strong><font color='grey'>First</font></strong> => {$first}</p>
  12. use ISO 8601 format for date i.e - (2014-11-24) ...

    use ISO 8601 format for date i.e - (2014-11-24)



    $year = '2014';
    $month = '11';
    $day = '24';

    $fd = strtotime($year . "-" . $month. "-" . $day . " 23:59:59"); // time in seconds is =...
  13. Replies
    12
    Views
    1,996

    use headers $first = 'firstname'; $last =...

    use headers


    $first = 'firstname';
    $last = 'lastname';
    $comment = 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam eget tempus leo. Suspendisse quis purus vitae nunc ultricies...
  14. Replies
    12
    Views
    2,852

    The Javascript version works best and as long as...

    The Javascript version works best and as long as you have the code on every page you should not have any problems.

    as to the php
    self::set_cookie will only work in a class context.

    are you...
  15. Replies
    5
    Views
    3,205

    you could do something like //get all the...

    you could do something like


    //get all the links on the page some how
    $links = array(
    'www.google.com'
    ,'www.yahoo.com'
    ,'www.example.com'
    ,'www.webdeveloper.com'...
  16. Replies
    5
    Views
    3,205

    Maybe a function like. function ping($host,...

    Maybe a function like.


    function ping($host, $port=80, $timeout=10) {
    $end = microtime(true);
    $check = fSockOpen($host, $port, $errno, $errstr, $timeout);
    if (!$check) {
    return; ...
  17. Replies
    12
    Views
    2,852

    sorry i should have noticed the conditional was...

    sorry i should have noticed the conditional was wrong change


    if(city!=null && city!=''){
    window.location.href = 'http://' + city + '.wellbeing.uk';
    }


    to
  18. Replies
    12
    Views
    2,852

    are you calling the same script on each page?

    are you calling the same script on each page?
  19. a faux array for testing $bookInfo =...

    a faux array for testing


    $bookInfo = array();

    $bookInfo['title'][0] = 'Harry Potter and The Chamber of Secrets';
    $bookInfo['author'][0] = 'J K Rowling';
    $bookInfo['isbn'][0] =...
  20. Replies
    12
    Views
    2,852

    also change this ...

    also change this


    $('#citygo').change(function(){
    var city = $(this).val();
    window.location.href = 'http://' + city + '.example.com';
    });

    to - which will set your cookie
  21. Replies
    12
    Views
    2,852

    try if (isset($_COOKIE["city"])) { if...

    try


    if (isset($_COOKIE["city"])) {
    if ($_COOKIE["city"] == 'city') {
    header("Location: http://{$_COOKIE["city"]}.example.com");
    }
    }
  22. Replies
    12
    Views
    1,996

    try this, with more robust headers $from=...

    try this, with more robust headers


    $from= "testturnover@abc.com"; //make sure that this is a real email
    $email= "some_test_email@gmail.com";
    $subject= "Php mail test";

    $message= "Some...
  23. Replies
    4
    Views
    978

    the backticks help to avoid any reserved keyword...

    the backticks help to avoid any reserved keyword collisions. but are not always necessary and in all honesty not best practice. But i find if i have issues using backticks can help.
  24. Replies
    1
    Views
    770

    You would need to write the MVC objects that...

    You would need to write the MVC objects that joomla uses to handle modules, or write your own version.
  25. I found the best way to learn was to set myself a...

    I found the best way to learn was to set myself a faux project with things that a potential client may want or need.
    This give you the benefit of reaching points that you can research as and when...
Results 1 to 25 of 33
Page 1 of 2 1 2
HTML5 Development Center



Recent Articles