Jump to content

Sql Search query


bluetiger

Recommended Posts

hi i am trying to search multipul fields in my database i have tried this code

[code]
SELECT *
FROM Profile
WHERE Location1 = 'colname'
OR Location2 = 'colname'
OR Location3 = 'colname';

 

but its giving me this error

Missing type for variable:colname

 

Any suggestions on this.

 

thanks[/code]

Link to comment
https://forums.phpfreaks.com/topic/55544-sql-search-query/
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.