Hello All,

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!

Sincerely,

wordman