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

Your name:

Reply:


Posted by tonjo on 02/02/06 16:37

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

and see is there any value in the variable.



--
΄|΄ () |\|] ()
---
Navigare Necesse Est,
Vivere Non Est Necesse
www.nautika.tk
"Jim S." <jim@yeah.com> wrote in message
news:gaoEf.4766$Nv2.1201@newsread1.news.atl.earthlink.net...
> i tried, :( did not work.
> any other suggestions?
>
> "Tyrone Slothrop" <ts@paranoids.com> wrote in message
> news:lc24u1li65dc3hn8lq3jkc26tmktqoovb5@4ax.com...
> > On Thu, 02 Feb 2006 12:52:05 GMT, "Jim S." <jim@yeah.com> wrote:
> >
> >>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
> >>
> >
> > Try placing some quotes around the file name:
> > \"$myfile\"
>
>

[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

Π‘Π°ΠΉΡ‚ ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ Π² Π‘Ρ‚ΡƒΠ΄ΠΈΠΈ Π’Π°Π»Π΅Π½Ρ‚ΠΈΠ½Π° ΠŸΠ΅Ρ‚Ρ€ΡƒΡ‡Π΅ΠΊΠ°
ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ΠΈΠ΅ ΠΈ ΠΏΠΎΠ΄Π΄Π΅Ρ€ΠΆΠΊΠ° Π²Π΅Π±-сайтов, Ρ€Π°Π·Ρ€Π°Π±ΠΎΡ‚ΠΊΠ° ΠΏΡ€ΠΎΠ³Ρ€Π°ΠΌΠΌΠ½ΠΎΠ³ΠΎ обСспСчСния, поисковая оптимизация