Hi,
I have two tables. I want to get all the data from both tables returned to me for display on a webpage. The code looks like this:
$tables = "table1, table2";
$result = mysql_query("SELECT * FROM $tables",$db);
or like this:
$tables = "table1 JOIN table2";
$result = mysql_query("SELECT * FROM $tables",$db);
However, the dataset I receive is not an array filled with the records from table1 followed by the records from table2, as expected. Instead, the dataset consists of the records from table1, repeated by the multiple of the number of records in table2. So if there are five records in table2, my dataset is all the records from table1, repeated five times.
I am testing this on MySQL 3.23.44.
Thanks for your help; I'm new to this and need all the help I can get.
-Michael