Advertisement
Guest User

Untitled

a guest
Nov 23rd, 2014
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. im looking to link the following tables : articles.*, images.*, games.*
  2. my query is :
  3.  
  4. SELECT articles.*, games.*, images.* FROM articles JOIN articles ON articles.id = 1 JOIN games ON games.id = articles.game_id JOIN images ON images.game_id = game.id
  5.  
  6.  
  7. the "1" stands for a $_GET result that will be implemented dynamically
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement