| Database SQL Error in Admin-Log Table Readout [message #2291] |
Sat, 07 February 2009 23:14  |
Threedays  Messages: 79 Registered: January 2009 Location: Australia |
Seeder |
|
|
This error is happening in the Admin Log display's column 'Action'. Any idea?
Data base sql error
Error Executing SQL Query
Error ID: 1064
Error Message: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'AND active = '1' AND warned = 'no'' at line 1
See me at ; http://conspiracyhub.com/
|
|
|
|
|
| Re: Database SQL Error in Admin-Log Table Readout [message #2301 is a reply to message #2291] |
Sun, 08 February 2009 04:41  |
Threedays  Messages: 79 Registered: January 2009 Location: Australia |
Seeder |
|
|
Joe just helped me out on this. Here are the changes needed.
update /include/functions.php
Goto line 246 in release 2.0.3 code.
$db->sql_query("UPDATE ".$db_prefix."_users SET seedbonus = seedbonus + '".$seedbonus."' WHERE id = $arr[userid] AND active = '1' AND warned = 'no'") or sqlerr(__FILE__, __LINE__);
should read ;
$db->sql_query("UPDATE ".$db_prefix."_users SET seedbonus = seedbonus + '".$seedbonus."' WHERE id = $arr[uid] AND active = '1' AND warned = '0'") or sqlerr(__FILE__, __LINE__);
So change 'userid' to 'uid'
See me at ; http://conspiracyhub.com/
[Updated on: Thu, 11 June 2009 13:22] by Moderator Report message to a moderator
|
|
|