[Warning] mysql_fetch_object(): supplied argument is not a valid MySQL result resource (@line 776 in file /home/logoidbv/www.logo-inspiration.de/protected/data/websitesClass.php).
/home/logoidbv/www.logo-inspiration.de/protected/data/websitesClass.php (776)
0765:
0766: return $data;
0767: }
0768:
0769: public function countClick($oid)
0770: {
0771: $ip = $_SERVER["REMOTE_ADDR"];
0772:
0773: $con = DataModule::getConnection();
0774: $sql = "SELECT timestamp FROM clicks WHERE website=$oid AND ip='$ip' AND TO_DAYS(timestamp)=TO_DAYS(NOW())";
0775: $result = mysql_query($sql,$con);
0776: if (!$row = mysql_fetch_object($result)) {
0777: $sql = "INSERT INTO clicks SET website=$oid, ip='$ip'";
0778: $result = mysql_query($sql,$con);
0779: }
0780: }
0781:
0782:
0783: public function isRated($oid)
0784: {
0785: $ip = $_SERVER["REMOTE_ADDR"];
0786: $con = DataModule::getConnection();
0787: $sql = "SELECT timestamp FROM ratings WHERE website=$oid AND ip='$ip'";
0788: $result = mysql_query($sql,$con);
#0 [internal function]: PradoBase::phpErrorHandler(2, 'mysql_fetch_obj...', '/home/logoidbv/...', 776, Array)
#1 /home/logoidbv/www.logo-inspiration.de/protected/data/websitesClass.php(776): mysql_fetch_object(false)
#2 /home/logoidbv/www.logo-inspiration.de/protected/pages/details.php(76): websitesClass->countClick(NULL)
#3 /home/logoidbv/www.logo-inspiration.de/3rdparty/trunk/framework/Web/UI/TControl.php(1286): details->onLoad(NULL)
#4 /home/logoidbv/www.logo-inspiration.de/3rdparty/trunk/framework/Web/UI/TPage.php(210): TControl->loadRecursive()
#5 /home/logoidbv/www.logo-inspiration.de/3rdparty/trunk/framework/Web/UI/TPage.php(193): TPage->processNormalRequest(Object(THtmlWriter))
#6 /home/logoidbv/www.logo-inspiration.de/3rdparty/trunk/framework/Web/Services/TPageService.php(474): TPage->run(Object(THtmlWriter))
#7 /home/logoidbv/www.logo-inspiration.de/3rdparty/trunk/framework/Web/Services/TPageService.php(420): TPageService->runPage(Object(details), Array)
#8 /home/logoidbv/www.logo-inspiration.de/3rdparty/trunk/framework/TApplication.php(1066): TPageService->run()
#9 /home/logoidbv/www.logo-inspiration.de/3rdparty/trunk/framework/TApplication.php(376): TApplication->runService()
#10 /home/logoidbv/www.logo-inspiration.de/index.php(31): TApplication->run()
#11 {main}