Re: [PHP] mysql_fetch_array errors

2002-05-20 Thread Philip Olson
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 : .

[PHP] mysql_fetch_array errors

2002-05-19 Thread Justin Latham
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

Re: [PHP] mysql_fetch_array errors

2002-05-19 Thread Richard Archer
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