![]() |
Available news archives:
comp.lang.tcl
-
comp.lang.python
-
comp.security.firewalls
-
sci.crypt -
comp.lang.php -
comp.lang.javascript
|
|
comp.lang.php archiveRe: About PHP::: Error/Problem PHP Warning: mysql_fetch_array():
From: Andy Hassall <andy@andyh.co.uk>
Date: Mon Jul 25 2005 - 21:55:57 CEST
On 25 Jul 2005 12:11:19 -0700, "Pratchaya" <pratchaya@banana.co.th> wrote:
>==============================================================
This means you did not check whether a previous mysql_* call (probably
>I think problem source from php.ini or httpd.conf .
No, it's missing error handling in your showdata.php file.
Check for whether the mysql_query call returned false - if it did, use
A simple way of doing this is:
$result = mysql_query($sql)
This is not very user friendly, but it does stop the script going any further
Once you've got that sorted you would be better off changing it to present a
If you don't understand the error that the mysql_error() function produces
-- Andy Hassall / <andy@andyh.co.uk> / <http://www.andyh.co.uk> <http://www.andyhsoftware.co.uk/space> Space: disk usage analysis toolReceived on Mon Oct 17 21:18:04 2005 |