array_merge indicators
2 posts by 2 authors in: Forums > CMS Builder
Last Post: July 2, 2012 (RSS)
By Perchpole - June 29, 2012
Hello, All
I'm going to bring two tables together using array_merge before passing the new merged array through a foreach loop.
Once I start looping through the results it would useful to know which table the result comes from.
What would be a good way to do this?
:o/
Perch
I'm going to bring two tables together using array_merge before passing the new merged array through a foreach loop.
Once I start looping through the results it would useful to know which table the result comes from.
What would be a good way to do this?
:o/
Perch
Re: [Perchpole] array_merge indicators
By Jason - July 2, 2012
Hi,
If your records were retrieved with getRecords, mysql_get() or mysql_select(), you can access the "_tableName" pseudo field to tell which table the record came from.
hope this helps,
If your records were retrieved with getRecords, mysql_get() or mysql_select(), you can access the "_tableName" pseudo field to tell which table the record came from.
hope this helps,
---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com
Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/
Jason Sauchuk - Project Manager
interactivetools.com
Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/