a chi mi risolve regalo un pacchetto pubblita advertising
ho un sitio paid to click mi da il seguente errore
fatal error halt query on line 4 file e':
source/clicking/entry.php
===========================qui il file=====================sono mle prime come dice error on line 4 :
=================================
<?
if(!IN_CLICKING) exit;
$clicked = ($Db1->querySingle("SELECT count(id) as found FROM click_history WHERE username='{$username}' and ad_id='{$id}' and type='{$type}'","found")>0?true:false);
$sql=$Db1->query("SELECT * FROM ".$adTables[$type]." WHERE id='{$id}'");
$ad=$Db1->fetch_array($sql);
if($clicked) error("You Have Already Clicked This Link Today");
if($ad[credits] <= 0 || ($ad[daily_limit] <= $ad[views_today] && $ad[daily_limit] > 0) || ($ad[upgrade] == 1 && $thismemberinfo[type]!=1) ) {
error("This Link Is Not Available To Click!");
}
if($type == "ptra") {
$ct = $Db1->querySingle("SELECT dsub FROM click_sessions WHERE username='$username' and type='ptra'","dsub")+9;
if($ct > time() || $Db1->num_rows()==0) error("You didn't wait long enough!");
}
$time=time();
mt_srand((double)microtime()*1000000);
$num = mt_rand(0,3);
$Db1->query("DELETE FROM click_sessions WHERE username='$username' and type='{$type}'");
$sql=$Db1->query("INSERT INTO click_sessions SET
dsub='{$time}',
username='{$username}',
val='{$num}',
type='{$type}'
=========================================
grazie dell aiuto
paolo