List:MySQL on Win32« Previous MessageNext Message »
From:Petr Vileta Date:January 16 2004 5:37pm
Subject:Re: Mysql update query involving many fields
View as plain text  
From: "Josue Mora" <josue@stripped>
To: "Petr Vileta" <petr@stripped>
Cc: <win32@stripped>
Sent: Friday, January 16, 2004 1:23 AM
Subject: Re: Mysql update query involving many fields


> Petr,
>
> It´s my example:
>     $query = "update shirt set
> style='{$HTTP_POST_VARS['style']}',color='{$HTTP_POST_VARS['tcolor']}'
WHERE
> id='$renglon2'";
>     $result = mysql_query($query) or die (error("Query failed"));
>
Test this please:
$query = "update shirt set
style=`{$HTTP_POST_VARS['style']}`,color=`{$HTTP_POST_VARS['tcolor']}` WHERE
            id=`$renglon2`";

or this:
$query = "update shirt set
style=`$HTTP_POST_VARS['style']`,color=`$HTTP_POST_VARS['tcolor']` WHERE
            id=`$renglon2`";

I don't understand what PHP mean by using {} brackets :-)
For MySQL character values is better to use ` character (on keyboard left
from the 1/! key). What is the english name for this? Accute accent? The
code value is #96 (Alt+96) or 0x60h.

Petr Vileta, Czech republic


Thread
Mysql update query involving many fieldsMatt15 Jan
  • Re: Mysql update query involving many fieldsPetr Vileta16 Jan
  • Re: Mysql update query involving many fieldsJosue Mora16 Jan
  • Re: Mysql update query involving many fieldsPetr Vileta16 Jan