View Single Post
  #5  
Old 10th June 2009, 02:33
3v0 3v0 is offline
Senior Member
 
Join Date: Feb 2008
Netherlands
Posts: 88
Default
Quote:
Originally Posted by Sonik View Post
Hello, i found this source on this forum and i want to discuss about this. Bugs, security and others.

I have some errors :
PHP Code:
Warning:  mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /home/ruo/public_html/mysite/include/cleanup.php on line 86

Warning
:  mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/ruo/public_html/mysite/include/cleanup.php on line 87 
What can i do ?
Line 85 should be

Code:
$user = mysql_query("SELECT invitedby FROM users WHERE status = 'pending' AND added < FROM_UNIXTIME($deadtime) AND last_access = '0000-00-00 00:00:00'");
Quote:
Originally Posted by Sonik View Post
I found another problem, when a user register on my site, he get VIP class. If you can "repair' this source and re-post it here, you are the man ;) . Thank you !
For this you need to edit the db and in the User table you need to change the user class default from 2 to 0

Last edited by 3v0; 10th June 2009 at 02:52.
Reply With Quote