MySQL Forums
Forum List  »  PHP

Re: how to use PHP variable in MYSQL query?
Posted by: Thomas Rye
Date: January 23, 2008 10:29AM

An Addendum:

For my mySQL queries to work I did have to put the grave accents around table name, and field names
Grave Accent (`) - same key as the tilda (~)
ie - SELECT * FROM `tbl-name` WHERE `field-name` = 'value')

This may be a mySQL version difference or something.

I find that taking straight from what I get on myPHPadmin works great.

Options: ReplyQuote


Subject
Written By
Posted
Re: how to use PHP variable in MYSQL query?
January 23, 2008 10:29AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.