Reply to Re: Simple beginners question about inserting data via an URL

Your name:

Reply:


Posted by deja on 10/11/07 04:11

I tried both ideas.. but neither of them return me the string that I
had in the url :(

What I dont understand is that I can pass 1 string, just not multiple
strings from the URL.


On Oct 10, 7:54 pm, macca <ptmcna...@googlemail.com> wrote:
> To see if they are coming though the URL to the script okay, which
> they should be.
>
> echo $_GET['var1'] . "<br />" . $_GET['var2'];
>
> Try
>
> $var1 = mysql_real_escape_string($_GET['var1']);
> $var2 = mysql_real_escape_string($_GET['var2']);
>
> $query = "INSERT INTO log VALUES ('$var1','$var2')";
> mysql_query($query,$conn) or die(mysql_error());

[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

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