Re: URGENT

From: Date: Wed, 19 Jun 2002 00:48:05 +0000
Subject: Re: URGENT
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-102835@lists.php.net to get a copy of this message
> local = '$local', city = '$city', postcode = '$postcode', id = > '$id'"; > $sql .= "WHERE username='$username'"; This would be: local = 'x', city = 'x', postcode = 'x', id = 'x'WHERE username='x' Which is your fault. > $sql .= "WHERE username='$username'"; needs to change to > $sql .= " WHERE username='$username'"; i.e., the space. A simply mysql_error, or even echo $sql before you did the query would have shown this for you....

« previous php.general (#102835) next »