fetch1("select isurl,titleurl,classid,id from {$dbtbpre}ecms_".$class_r[$classid][tbname]." where id='$id' limit 1"); if(empty($r['isurl'])) { printerror("ErrorUrl","",1); } $url=$r['titleurl']; $sql=$empire->query("update {$dbtbpre}ecms_".$class_r[$classid][tbname]." set onclick=onclick+1 where id='$id'"); db_close(); $empire=null; Header("Location:$url"); } ?>