|
|  |
The PHP developers network
401 hits
| Dec 31, 2003 4:44 pm |
|
re: Recipe Database Example |
Frank Flynn
 | |
> Brian Grayless wrote: >.... >$query = "SELECT * FROM recipe_table WHERE id = '" . $id_to_use . "'"; >...
Should be:
$query = "SELECT * FROM recipe_table WHERE id = " . $id_to_use;
(No ' around the $id_to_use) unless you intend to use a char / varchar for the id. Integer would probably be better.
FrankPrivate Reply to Frank Flynn (new win) |
|