|
-
I need proper syntax/procedure for inserting a variable into a SELECT query...
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
Similar Threads
-
By hullabaloo in forum Database
Replies: 0
Last Post: 06-10-2009, 05:32 AM
-
By vindhvp in forum Database
Replies: 7
Last Post: 03-26-2009, 07:59 AM
-
By rkbnair in forum Database
Replies: 3
Last Post: 01-15-2007, 04:52 PM
-
By Rab in forum VB Classic
Replies: 7
Last Post: 07-25-2001, 12:45 PM
-
By Craig in forum Database
Replies: 3
Last Post: 05-31-2000, 03:19 AM
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks