"; print "window.location='http://electronicsmaker.com/em/index.php';"; print ""; } else { $like=mysql_query("INSERT INTO `hitcounter` ( add_id, `counter` , hitdate, ip_address ) VALUES ( '".$urlid."', '1', '$currentdate' , '".$ipaddress."')"); if($like!='') { $sqlquery=mysql_query("select * from advertise where id='$urlid'"); $linelist=mysql_fetch_array($sqlquery); $hitcounter=$linelist['hitcounter']; $newhit=$hitcounter+1; $sqlupdate=mysql_query("update advertise set hitcounter='$newhit' where id='$urlid'"); print ""; } else { print ""; } } ?> Electronics Maker