Guest Posted April 16, 2007 Share Posted April 16, 2007 Im trying to join two tables but they both have id in them and i cannot figure out how to get the results. I try this $row['Company.ID'] but that returns nothing how can i get each id? Link to comment https://forums.phpfreaks.com/topic/47230-solved-join-columns-same/ Share on other sites More sharing options...
Vikas Jayna Posted April 16, 2007 Share Posted April 16, 2007 by referring them as tablename.id Link to comment https://forums.phpfreaks.com/topic/47230-solved-join-columns-same/#findComment-230328 Share on other sites More sharing options...
bubblegum.anarchy Posted April 17, 2007 Share Posted April 17, 2007 you can always do SELECT company.id AS company_id FROM company and then $row['company_id'] Link to comment https://forums.phpfreaks.com/topic/47230-solved-join-columns-same/#findComment-230870 Share on other sites More sharing options...
Guest Posted April 17, 2007 Share Posted April 17, 2007 Thank You thats exactly what i needed to know. Link to comment https://forums.phpfreaks.com/topic/47230-solved-join-columns-same/#findComment-230873 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.