A key to understanding your mysql errors is by using
the mysql_error() function. It's wonderful! Here's
a simple example with a little error checking:
?php
error_reporting(E_ALL);
$conn = mysql_connect('host','user','pass');
if (!$conn) {
print Could not connect to mysql : .
I am trying to clone my webserver because I am switching ISPs. So I copied
the MySQL database, and then I copied the php pages. But my new server
insists that any query I do is not a valid result resource when I try to use
it in a mysql_fetch_array command. I know that both php and the
At 9:38 PM -0400 19/5/02, Justin Latham wrote:
insists that any query I do is not a valid result resource when I try to use
it in a mysql_fetch_array command. I know that both php and the database
So what errors are being returned by all the mysql_* calls?
Error messages are their to help the
3 matches
Mail list logo