Após sua chamada para
mysql_query , usa isto:if (! $result) {
echo mysql_errno() . ": " . mysql_error(). "\n";
}
isso lhe dirá exatamente por que o MySQL não executará sua consulta.
mysql_query , usa isto:if (! $result) {
echo mysql_errno() . ": " . mysql_error(). "\n";
}