Hello,
I am trying to run a script on my site ,
The script is this :
and I am getting these errors
[Sat Aug 13 11:47:01 2011] [error] [client 84.228.254.88
] PHP Fatal error: Call to a member function fetch() on
a non-object in /var/www/includes/stats.php on line 42,[/code]
] PHP Warning: Invalid argument supplied for foreach()
in /var/www/includes/stats.php on line 89
and
[code]] PHP Warning: Invalid argument supplied for foreach()
in /var/www/stats.php on line 75
I run ubuntu 11 vps .
Some one told me that
Probably this query is not returning a value, so it gives an error. [code]$sql = "SELECT count(id) FROM shares WHERE id > $lastwinningshare AND our_result='N'";[/code] Most likely it will go away as soon as it returns something.from the file /includes/stats.php
I really need to fix this problem , is there any module i need to install or the code is incorrect ?
If you want i can give you a link to php info of my vps .
Thanks a lot for the help !