You are here: Re: can't get variable into the query « All PHP « IT news, forums, messages
Re: can't get variable into the query

Posted by cashmere on 10/10/27 11:50

Geoff Berrow wrote:
> Message-ID: <1150560684.019895.139910@i40g2000cwc.googlegroups.com> from
> cashmere@t-online.de contained the following:
>
> >Thanks Geoff - I'm gettting a parse error but looking to see if it's
> >maybe a typo.
>
> This may fix it
>
> if(mysql_query("INSERT INTO `multiple` VALUES
> ('$_POST[id]','$_POST[joketext]')")){
> --
> Geoff Berrow 0110001001101100010000000110
> 001101101011011001000110111101100111001011
> 100110001101101111001011100111010101101011

Thanks Geoff - that got rid of the parse error - I was trying out
different brackets there too.
Now it looks ok, but this time the text doesn't make it into the
content field, even though the "Joke added" text is displayed.
I'm now going to go back through some of my previous attempts using
your above syntax.
Well, I say now, but the footie starts in 2 mins! (Italy v USA).
Cheers Dave

 

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

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