Re: Problem with update-command

From: Date: Thu, 22 Apr 2004 12:04:54 +0000
Subject: Re: Problem with update-command
Groups: php.db 
Request: Send a blank email to php-db+get-34034@lists.php.net to get a copy of this message
>$result=mysql_db_query("usr_172_1","UPDATE artikel SET Preis='\$preis\' WHERE ID='\$id\'"); >//mysql_error($result); Here you're escaping the $ and then the ', have you tried.... $result=mysql_db_query("usr_172_1","UPDATE artikel SET Preis='{$preis}' WHERE ID='{$id}'"); with those escapes this is the actual query you're sending.... "UPDATE artikel SET Preis='$preis\' WHERE ID='$id\'" HTH Jeff -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.db (#34034) next »