Jump to content

[SOLVED] Check two variables against 1 db table


siwelis

Recommended Posts

Using PHP, I'm trying to figure out the syntax for a MySQL query to write this:

 

WHERE column1 = '$var1' & column2 = '$var2'

 

I want to execute a script, but only if column1 matches $var1 AND column2 matches $var2. Any help is greatly appreciated. Thank you!

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.