I am using MySQL and attempting to select from two tables. Some of the columns in the tables have the same name however I am only recieving the data for the column in the first table.
My SQL code is:
$query_Service = sprintf("SELECT * FROM service, company WHERE service.DQNum = %s and company.CompRef = service.CompRef", $SlctDQNum_Service);
$Service = mysql_query($query_Service, $dbasename) or die(mysql_error());
$row_Service = mysql_fetch_assoc($Service);
After this $row_Service contains the columns from service and columns from company where the column name is not also in service, but not columns from company that have the same name as a column in service.
Am I missing something, or is this a bug?
Charlie B