In MySQL I have joined two tables which both have a column named 'Name'. In PHP I am writing a script that retrieve the values of the columns and store it in variables:
$row = mysql_fetch_array($result);
$table1name = $row['Name'];
$table2Name = $row['Name'];
Of course the variables will not give the values of the 2 columns, but they will both give the same value from the column of the second table. Is there a way, without changing the name of the columns in the database, to retrieve the distinct values of both columns?
mysql_fetch_array()than MySQL.