ecabrera Posted July 12, 2012 Share Posted July 12, 2012 can i create a variable like this $statusid = $rows['status.user_id']; since i have to user_id but they are in diffrenent table but in this query i join them together Link to comment https://forums.phpfreaks.com/topic/265561-join-query/ Share on other sites More sharing options...
Barand Posted July 12, 2012 Share Posted July 12, 2012 In short, No. The table name is not part of the array index, so you would get $row['user_id']. You need to use column aliases in the query Link to comment https://forums.phpfreaks.com/topic/265561-join-query/#findComment-1361032 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.