I used a join query to retrieve values from two tables that have the same field name. How can i get the two fields value?
mysql_query("SELECT table1.Name, table2.Name
FROM table1
INNER JOIN table2
ON table1.Id=table2.userid
ORDER BY table1.Id DECS LIMIT 5")
With the above query, I need values from both table1.Name and table2.Name.