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

python - Scipy curvefit RuntimeError:Optimal parameters not found: Number of calls to function has reached maxfev = 1000 -

c# - How to add a new treeview at the selected node? -

java - netbeans "Please wait - classpath scanning in progress..." -