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 "\" -

web applications - Making Python scripts work on MAMP -

cocoa - Converting NSString to keyCode+modifiers for AXUIElementPostKeyboardEvent -