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? Quote 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 Quote 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'] Quote 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. Quote Link to comment https://forums.phpfreaks.com/topic/47230-solved-join-columns-same/#findComment-230873 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.