So, I have a custom CMS that allows you to dynamically create forms and lists, etc. I noticed a problem when it captures data for a list, which contradicts the approval table in the database.
The problem is that if the data table has field names the same as the field names in the claims table, then when I mysql_fetch_array and returns the values ββin the array, it returns only one field name
So, an example of what returns
Array ( [id] => 1 )
And ideally, I would like him to come back as
Array ( [approvals.id] => 1 [affiliates.id] => 2 )
So, how can I force the table name prefix to an array of results to counteract the names of the fields that are called the same? I do not want to change the names of the fields as they are pretty built-in.
Horse source share