mysql_db_query() syntax

admin

Administrator
Staff member
How can I construct a mysql query with php variable in it, does everyone know?

like:

$result=mysql_db_query($db, "SELECT * FROM table WHERE user=$user");

This second parameter has given me a lot of problems.
 
Back
Top