Quote:
Originally Posted by William
If you ask nicely, sure one of the PHP gurus could help.
Make sure to use [ CODE ]code here[ /CODE ] when posting any code, without spaces on either side of the word code and /code.
|
Um.. ok
*Gets down on knee's and asks nicely* Could somebody please tell me how I get this script to work with register globals turned off. It's for my downloads script which is here
http://simsboutique.net/clothing.php?age=Toddler
It usually displays downloads with register globals turned on but now it won't work.
Anyway here's the important part of the script
Code:
$nextID = $ID;
$sql = "SELECT * FROM Downloads WHERE age = '$age'";
if($nextID != "")
{
$sql .= "&& skinID <= '$nextID'";
}
$sql .= "ORDER BY skinID desc LIMIT 8";
$getSkin = mysql_query($sql, $linkID);
// echo "$sql";
while($Downloads = mysql_fetch_array($getSkin))
if ($age == "$age")
{
The mysql connect stuff is in the header of my page. Just letting you know so you don't think I forgot that part. I'm not sure if that's enough of the script. I really just need to know what parts I replace in this script so it'll work with register globals off. I hope someone can help my sites all broken and it's stressing me a little.
Thanks from Sharon.