Ryze - Business Networking Buy Ethereum and Bitcoin
Get started with Cryptocurrency investing
Home Invite Friends Networks Friends classifieds
Home

Apply for Membership

About Ryze


The PHP developers network

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

642 hits
Dec 31, 2003 9: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)





Ryze Admin - Support   |   About Ryze



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