$db->delete_query("warnings", "uid='{$user['uid']}'");
// Update thread ratings
|
$db->delete_query("warnings", "uid='{$user['uid']}'");
// Update thread ratings
|
SELECT r.*, t.numratings, t.totalratings FROM ".TABLE_PREFIX."threadratings r LEFT JOIN ".TABLE_PREFIX."threads t ON (t.tid=r.tid) WHERE r.uid='{$user['uid']}' ");
|
SELECT r.*, t.numratings, t.totalratings FROM ".TABLE_PREFIX."threadratings r LEFT JOIN ".TABLE_PREFIX."threads t ON (t.tid=r.tid) WHERE r.uid='{$user['uid']}' ");
|
{ $update_thread = array( "numratings" => $rating['numratings'] - 1,
| { $update_thread = array( "numratings" => $rating['numratings'] - 1,
|