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

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