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:


 


Regards,
Philip Olson


On Sun, 19 May 2002, Justin Latham wrote:

> 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 database
> are functional (to an extent) because all other commands work.
> I'm using PHP 4.something over MySQL 3.2.3 running RedHat 7.0.
> Thanks
> 
> Justin
> 
> 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 



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




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 programmer find problems...
not as an annoyance to be turned off and/or ignored.

 ...R.

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