Posted by Jim Michaels on 02/14/06 01:09
"Antonino Tumminelli" <my.hero@web.de> wrote in message
news:1138886683.469557.240670@g43g2000cwa.googlegroups.com...
> $sql = "update products set smallpicname = ".$myfile." where
> id=".$idvar;
that's not the problem. he should be putting quotes around the string. the
variables will expand just fine.
$sql = "UPDATE products SET smallpicname = '$myfile' WHERE id=$idvar";
it's good practice (just for visual debugging) to put SQL keywords in caps.
>
Navigation:
[Reply to this message]
|