wrong id returned in join |
(01-06-2016, 01:20 PM)frocco Wrote:(01-06-2016, 01:11 PM)sv3tli0 Wrote: You should define the SELECT string not using the default which is '*' .. You can't skip that thing. When there are 2 'id' fields its normal that you get just 1 of them. (PHP restrictions..) I am not quite sure but if you set PHP Code: $this->db->select('Table2.*, Table1.*'); Perhaps you will get the duplicated keys from the second set table. I am not quite sure if you will be allowed to do that but you can try it. Best VPS Hosting : Digital Ocean
|
Messages In This Thread |
wrong id returned in join - by frocco - 01-06-2016, 12:57 PM
RE: wrong id returned in join - by PaulD - 01-06-2016, 01:03 PM
RE: wrong id returned in join - by frocco - 01-06-2016, 01:11 PM
RE: wrong id returned in join - by sv3tli0 - 01-06-2016, 01:11 PM
RE: wrong id returned in join - by frocco - 01-06-2016, 01:20 PM
RE: wrong id returned in join - by sv3tli0 - 01-06-2016, 01:25 PM
RE: wrong id returned in join - by frocco - 01-06-2016, 01:32 PM
RE: wrong id returned in join - by PaulD - 01-07-2016, 05:23 AM
RE: wrong id returned in join - by sv3tli0 - 01-07-2016, 05:32 AM
RE: wrong id returned in join - by PaulD - 01-07-2016, 06:19 AM
RE: wrong id returned in join - by frocco - 01-07-2016, 07:04 AM
|