You are here: Re: $sql = "update products set smallpicname = $myfile .....???? « PHP Programming Language « IT news, forums, messages
Re: $sql = "update products set smallpicname = $myfile .....????

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация