Joining two tables


/ Published in: PHP
Save to your folder(s)



Copy this code and paste it in your HTML
  1. <?php
  2. //DB connection
  3. $query = "SELECT table1.*, table2.* FROM table1 LEFT JOIN table2 ON table1.column = table2.column";
  4. ?>

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.