Problem solved... where can I deleted this?
Announcement
Collapse
No announcement yet.
Help needed using variables in sql query
Collapse
X
-
Ideally you'd leave the original question and post the solution; that way people searching for a similar issue can see how you solved your problem.
-
Originally posted by Fumigator View PostIdeally you'd leave the original question and post the solution; that way people searching for a similar issue can see how you solved your problem.
basically you can do $query = "SELECT $abc, $def FROM ......"
but I just entered abc, def without the $ and never spotted it.
I shall leave the original message in there next time to make a fool outta myself.Nemesis War
Online browser based space combat game.
It's free, it's great, you'll love it.
Come join us at http://www.nemesiswar.net/
Comment
-
my sugestion is:
PHP Code:$sql = "SELECT field FROM table WHERE field='".$var['field']."' ORDER BY field DESC"
Comment
Comment