Why this doesn't work ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> $query = "SELECT COUNT (login) FROM formacao WHERE login = '$login'";
> $result = mysql_query($query);

Make this line instead
$result = mysql_query($query) or die(mysql_error() . " with the query $query";
and you'll likely see the error.

--
Scott Noyes
snoyes@xxxxxxxxx

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux