Ryze - Business Networking
Home Invite Friends Networks Friends Events classifieds
Home

Sign-up

About Ryze


The PHP developers network

Top [This Network is not currently active and cannot accept new posts]
<- Previous Next ->

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.

Frank

Private Reply to Frank Flynn (new win)



Support   |   FAQ   |   What's New   |   About Ryze

© Ryze Ltd. Ryze is a trademark of Ryze Ltd.  Terms of Service, including the Privacy Policy