Hello, If I am joining two tables and the result set will have ambiguous coloumn names, how can I retrieve the correct one through php?
Example:
$results = mysql_query("SELECT b.name, m.name FROM Brands as b INNER JOIN Models as m ON b.id = m.brand_id", $connection);
while ($row = mysql_fetch_array($results)) {
printf("Name: %s", $row["name"]);
}
How can I get access to b.name and m.name from the $row array?
Thank you.