Re: Database problem?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



OK. Where can I change the register_globals setting?

Thanks for the fast replies.

-Will

"Jay Blanchard" <jay.blanchard@xxxxxxxxxxx> kirjoitti 
viestissä:0CEC8258A6E4D611BE5400306E1CC9270915AB40@xxxxxxxxxxxxxxxxxx
> [snip]
> http://localhost/index.php?team=F10a
>
> I have this in my page and it doesn't work:
> $sql = "select jouk_nimi from x_jun_jouk where jouk_id='$team' ";
> $kysely = mysql_query($sql);
> $tulos = mysql_fetch_row($kysely);
> $jouk_nimi = $tulos[0];
>
> $jouk_nimi -variable will be empty.
>
> This works (replaced the $team with static entry "F10a")
> $sql = "select jouk_nimi from x_jun_jouk where jouk_id='F10a' ";
> $kysely = mysql_query($sql);
> $tulos = mysql_fetch_row($kysely);
> $jouk_nimi = $tulos[0];
>
> $jouk_nimi get's right value from database.
> [/snip]
>
> register_globals is 'on' on the other server. Try
>
> $sql = "select jouk_nimi from x_jun_jouk where jouk_id=$_GET['team'] "; 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux