PHP if statement with a MySQL query -


is there way if statement this:

if ($password == mysql_query("select password member id = $id")) {  // f00  } 

so mean is, if possible and/or practice have short query in if, instead of extracting db first.

thanks!

mysql_query returns resource wont work


Comments

Popular posts from this blog

delphi - TJvHidDeviceController "DevicePath" always showing "\" -

Disabling Android home button for industry application -

asp.net mvc 3 - Unexpected "foreach" keyword after "@" character -