Jump to content

Syntax statements


anevins

Recommended Posts

I'm having problems with the syntax of my SQL statement and I don't know how to solve it.

 

SELECT * FROM stick, location, identification WHERE make LIKE '%$terms%' AND stick.sid = location.lid AND identification.stickID = stick.sid 
AND identification.id = $id"

 

The problem is when I add:

AND identification.id = $id

 

As I need to define what $id is.

 

How can I make a valid statement from this?

Thanks

Link to comment
https://forums.phpfreaks.com/topic/231176-syntax-statements/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.