Re: [PHP-DB] Problem with update-command

2004-04-22 Thread Torsten Roehr
"Jeffrey N Dyke" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > >$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_

Re: [PHP-DB] Problem with update-command

2004-04-22 Thread jeffrey_n_Dyke
>$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 th