![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I'm trying to retrieve a recordset, where one value in the mySQL table/field = the letter W. When I run the .php file on the testing server, I get the message: You have an error in your SQL syntax near 'W''' at line 1 Anyone have any ideas why? Here's teh syntax: ?php mysql_select_db($database_booklist, $booklist); $query_wants = "SELECT * FROM books WHERE have_want = ''W''"; $wants = mysql_query($query_wants, $booklist) or die(mysql_error()); $row_wants = mysql_fetch_assoc($wants); $totalRows_wants = mysql_num_rows($wants); |
#3
| |||
| |||
|
#4
| |||
| |||
|
|
Thats true Steve... that does now work.. wonder why DW wants to put in double ticks? Also.. I know how to pass URL parameters to a Details page using ASP, but this function seems to be missing when I'm tryin gto build in PHP.. any ideas how to do this? |
![]() |
| Thread Tools | |
| Display Modes | |
| |