|
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());
Navigation:
[Reply to this message]
|