merged threads- installing a script
Hi there,
I purchased a script today and tried my best to install it. I got past most of it, but there is a part I cannot get past. The error message I am getting is "Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/mllanser/public_html/config.php on line 29
No database selected"
And here is the coding right before and after that line....
$queryxx = "DELETE FROM ad_clicks WHERE day!='$da'";
mysql_query($queryxx);
$q2 = mysql_query("SELECT * FROM settings");
while($r2=mysql_fetch_array($q2))
{
$set[$r2[setname]]=$r2["setvalue"];
}
mysql_query("UPDATE settings SET setvalue='0', set_day='{$da}' WHERE set_day!='{$da}' AND set_day>'0'") or die(mysql_error());
$user=$_COOKIE['usNick'];
The error seems to be coming from the line that starts with "while"
Is there anything you can do to help??
Thanks so much!
Michelle