How can combines(merger) two or more "SELECT * from ..." together by PHP and get from it output?(i use CodeIgniter)
For example my database is as:
table.png
This is my try(Not work):
How is it?Code:$find1 = 'Boston'; // This is a input post $_POST[] $query = $this->db->query('SELECT name FROM array('Store_Information', 'Geography') WHERE name LIKE "%' . $find1 . '%"'); $query_out = $query->row(); echo $query_out->order;// This output should is this: "New Mexico"


Reply With Quote






Bookmarks