I am having issue using a user defined variable i an a mysql statement.
here is the issue that i am facing:
i have a variable called $date in php.This variable is assigned a valued from a dropdown box every time the user chose a different date. for example the drop down box return a string in that order "2007-10-10" I then assigned that string to $date.
Now, what iam trying to do is using the following statement to return events associated with that date. in the sql statement below:
[code=php]
$result=mysql_q uery("select * from event_list where date='$date' ");
[/code]
and that does not work! Any help would be greatly appreciated.
Thank you
here is the issue that i am facing:
i have a variable called $date in php.This variable is assigned a valued from a dropdown box every time the user chose a different date. for example the drop down box return a string in that order "2007-10-10" I then assigned that string to $date.
Now, what iam trying to do is using the following statement to return events associated with that date. in the sql statement below:
[code=php]
$result=mysql_q uery("select * from event_list where date='$date' ");
[/code]
and that does not work! Any help would be greatly appreciated.
Thank you
Comment