How do I SELECT same column name from multiple tables
Posted: 15 Nov 2014, 15:34
I have 2 tables with same column names in my database which are supposed to provide content in 2 languages.
This is how I query for one table (this query is executed correctly):
However, when I try to do it for 2 tables:
I am getting the error. What am doing wrong?
This is how I query for one table (this query is executed correctly):
Code: Select all
$sql = "SELECT * FROM tab_en WHERE time > $from";
Code: Select all
$sql = "SELECT * FROM tab_en, tab_es WHERE time > $from";