[snip]
This is not true, the resource link identifier is optional! If
unspecified,
the last opened link is used. My suggestion is to check the results of
mysql_error() for more information on the failed query.
[/snip]

You are right, of course...my sleepy brain just glanced at the code and
fired off a reply. I always test queries with the following block;

if(!($result = mysql_query($query, $connection))){
        echo "A query error has occured: " . mysql_error() . "\n";
        exit();
}

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

Reply via email to