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

Posted by Rich on 02/02/06 21:17

In article <manEf.9365$rH5.5246@newsread2.news.atl.earthlink.net>, Jim S.
says...
>
>hi, i have this
>$sql = "update products set smallpicname = $myfile where id=37";
>mysql_query($sql);
>i want the value of $myfile to be in the $sql , but it is not doing it, so
>what am i doing wrong?
>how can i put variables in the $sql statement so i can execute it with
>mysql_query ???
>since i want also to put .....id= $idvar please help
>
>

Might try this instead...

$sql = "update products set smallpicname = " . $myfile . " where id=37";

Rich
--
Newsguy BonusBytes! - Free monthly rewards
http://newsguy.com/bonusbytes.htm

 

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

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