Advertisement
geolim4

query

Oct 16th, 2012
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.51 KB | None | 0 0
  1.                 $sql = 'SELECT a.user_id, a.user_colour, a.username, a.ums_kick, a.ums_kick_owner, b.user_id AS owner_user_id, b.user_colour AS owner_user_colour, b.username AS owner_username
  2.                        FROM ' . USERS_TABLE . ' a
  3.                        INNER JOIN ' . USERS_TABLE . ' b
  4.                         ON b.user_id = a.ums_kick_owner
  5.                             WHERE a.ums_kick ' . $db->sql_like_expression($db->any_char . 's:6:"kicked";b:1;}') . '
  6.                                 AND a.user_type <> ' . USER_IGNORE . '
  7.                                     ORDER BY a.username ASC';                      
  8.                     $result = $db->sql_query($sql);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement