Guest User

Untitled

a guest
Oct 20th, 2017
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. $pilotonline = mysql_query("SELECT * FROM users, winguser WHERE onlinelast > NOW() - INTERVAL 6 MINUTE JOIN wings.winguser ON wings.id = winguser.userid")or die(mysql_error());
  2.  
  3. I'm trying to JOIN two tables.
  4. 1st table: `wings`
  5. 2nd table: `winguser`
  6.  
  7. trying to join them on (`wings ` id) should be the same as (`winguser userid)
  8.  
  9. and i want wings.onlineilots to be > than the time - 6 min
Add Comment
Please, Sign In to add comment