I need proper syntax/procedure for inserting a variable into a SELECT query...
Here's what I want to do:
Take this - $sql = 'SELECT name FROM galleries WHERE spec = XYZ'
where XYZ is a variable passed down from a query string.
What is the proper syntax/procedure for placing a variable in the above statement? I'm trying everything I can think of to no avail.
For what it's worth, I'm using MySQLi.
Thanks in advance for any help you can offer!
By hullabaloo in forum Database
Last Post: 06-10-2009, 05:32 AM
By vindhvp in forum Database
Last Post: 03-26-2009, 07:59 AM
By rkbnair in forum Database
Last Post: 01-15-2007, 04:52 PM
By Rab in forum VB Classic
Last Post: 07-25-2001, 12:45 PM
By Craig in forum Database
Last Post: 05-31-2000, 03:19 AM
Tags for this Thread
-- Android Development Center
-- Cloud Development Project Center
-- HTML5 Development Center
-- Windows Mobile Development Center