Jump to content

Where clause


dudejma

Recommended Posts

I'm trying to get the number of rows to be echoed, but I get this error:

Unknown column 'mymd5password' in 'where clause'

 

Does anyone know what this means? Here's the where clause:

 

$sql = "SELECT * FROM test WHERE password=$password";

 

Thanks!

 

Edit:

My variable $password is already in md5 form. I'm taking it from a form.

Link to comment
https://forums.phpfreaks.com/topic/243044-where-clause/
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.