Re: debugging?

From: Date: Thu, 21 Feb 2002 21:08:39 +0000
Subject: Re: debugging?
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-17162@lists.php.net to get a copy of this message
jas, Try this: - Remove the @, it suppresses the error - change die("Could not execute query, please try again later"); to die(mysql_error()); $sql = mysql_query("DELETE FROM $table_name WHERE $id = 'id'",$dbh) or die(mysql_error()); olinux --- jas <jlgerfen@hotmail.com> wrote: > Can someone tell me how I can find out why I am > getting errors executing > queries when I try to delete items from a table? I > have 2 files... > file 1. - Queries database, displays results with > option to delete record > using a check box, code is as follows... > <?php <snip> __________________________________________________ Do You Yahoo!? Yahoo! Sports - Coverage of the 2002 Olympic Games http://sports.yahoo.com

« previous php.db (#17162) next »