Re: new pair of eyes

From: Date: Fri, 31 May 2002 16:51:00 +0000
Subject: Re: new pair of eyes
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-19556@lists.php.net to get a copy of this message
On Saturday 01 June 2002 00:30, Jas wrote: > I think I am missing something: > $db_name = "database"; > $table_name = "auth_users"; > $sql = "DELETE user_id, f_name, l_name, email_addy, un, pw FROM > $table_name WHERE user_id = \"$user_id\", $dbh"; The MySQL syntax for DELETE is: DELETE FROM table [WHERE ...] thus there is no need for user_id, f_name etc. -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * /* The number of licorice gumballs you get out of a gumball machine increases in direct proportion to how much you hate licorice. */

« previous php.db (#19556) next »