ever had a problem with a mysql query and spent hours trying to find the problem? this is the code for you, get into the habit of using it for your queries and php will show mysql query errors as this:
Unknown column 'test' in 'where clause'
PHP Example :
$sql = "SELECT * FROM table WHERE test = '$test'";
$result = mysql_query($sql) or die(mysql_error());