Reply to Re: $sql = "update products set smallpicname = $myfile .....????

Your name:

Reply:


Posted by Jim Michaels on 02/14/06 01:11

<ces.fci@gmail.com> wrote in message
news:1138901184.770495.214910@g43g2000cwa.googlegroups.com...
> Be sure to escape any values that are in your queryt, e.g:
> $myfile = mysql_real_escape_string($myfile);
> $sql = "update products set smallpicname ='$myfile' where id='$idvar'";

$sql = "update products set smallpicname ='$myfile' where id=$idvar";
it's not good SQL etiquette to put a number in a quotes unless the columns
is defines as some CHAR type.

>

[Back to original 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

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