Results 1 to 2 of 2

Thread: [resolved] What is wrong with this syntax?

Threaded View

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jul 2004
    Posts
    121

    Resolved [resolved] What is wrong with this syntax?

    PHP Code:
    $sql mysql_query('SELECT golf_course_code FROM availability WHERE golf_course_code='.$_POST['txtGolfCourse'].' AND t_date="'.$temp_date.'"');
        while (
    $row mysql_fetch_object($sql)) {\
            echo 
    $row->golf_course_code.'<br>';
        } 
    I'm getting this rather unhelpful error message:
    Warning: mysql_fetch_object(): supplied argument is not a valid MySQL result resource in C:\golf_engine_php\xt_index.php on line 33
    Any help is appreciated.
    Many thanks.
    Last edited by solitario; May 27th, 2005 at 02:54 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width