Re: [PHP] Debugging problems

2001-05-22 Thread Chris Lee
best bet is to put some error checking in. function _check_db($query = '', $line = '') { if ( mysql_errno() ) { echo "Error: Problem with DataBase : {$GLOBALS['db_database']}\n"; echo "Error: " . mysql_errno() . ':' . mysql_error() . "\n"; echo "Query: $query\n"; echo "Line : $l

[PHP] Debugging problems

2001-05-22 Thread Taline Makssabo
I'm using this as a log on but it gives me this warning message: Warning: Supplied argument is not a valid MySQL resource /httpd/html/php2/login.php on line 27 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAI

RE: [PHP] debugging problems

2001-05-18 Thread Don Read
On 18-May-01 Taline Makssabo wrote: > This is a program i wrote to get some information at keep track with some > stats. I am very new at this so bare with meI keep on getting this > Warning: > > Warning: Supplied argument is not a valid MySQL result resource in > /home/virtual/ppcu/home/htt

Re: [PHP] debugging problems

2001-05-18 Thread elias
You forgot to select the database! mysql_select_db($db_name); -elias http://www.eassoft.cjb.net ""Taline Makssabo"" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > This is a program i wrote to get some information at keep track with some > stats. I am very ne

[PHP] debugging problems

2001-05-18 Thread Taline Makssabo
This is a program i wrote to get some information at keep track with some stats. I am very new at this so bare with meI keep on getting this Warning: Warning: Supplied argument is not a valid MySQL result resource in /home/virtual/ppcu/home/httpd/html/php2/stat.php on line 13 Warning: Suppli