Guest User

Untitled

a guest
Feb 18th, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. $tmp = $db->query("SELECT DISTINCT idl FROM mesages WHERE ida='".$getuser['id']."' ORDER BY date DESC
  2. UNION SELECT DISTINCT idl FROM achuvedoms WHERE ida='".$getuser['id']."' ORDER BY date DESC");
  3.  
  4. $tmp = $db->query("SELECT * FROM (
  5. SELECT DISTINCT idl FROM mesages WHERE ida='".$getuser['id']."'
  6. UNION SELECT DISTINCT idl FROM achuvedoms WHERE ida='".$getuser['id']."'
  7. ) results ORDER BY date DESC");
Add Comment
Please, Sign In to add comment