| | |||||
| ||||||||
| Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics. |
![]() |
| | LinkBack | Thread Tools |
| | THREAD STARTER #1 (permalink) |
| Quality // Join Date: Sep 2008
Posts: 911
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | |
| | |
| | #2 (permalink) |
| Senior Member Join Date: Jul 2005 Location: NJ
Posts: 1,219
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | looks like its just a nested array. use the foreach() loop (nested) to pull out the data.
__________________ Hacksar.com - Your source for random computer tips and tricks! MySiteMemberships.com - Keep track of your site registration information! Like my post? Rep is appreciated! |
| | |
| | #3 (permalink) |
| NamePros Regular Join Date: Apr 2006
Posts: 360
![]() ![]() ![]() ![]() | given the example it would be: Code: //method to select (clean and beautiful)
$result = $m->select(array(
'table' => 'users',
'condition' => 'active=1 AND type=1'
));
foreach ($result as $row) {
//The data is in $row['user'] where user is the mysql table name
//so if there was a field username you would retrieve it like this
$username = $row['user']['username'];
}
__________________ Canadian Domain Registrar Ready.ca |
| | |
| | THREAD STARTER #4 (permalink) |
| Quality // Join Date: Sep 2008
Posts: 911
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | It works. Thank you ![]() |
| | |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to do a diff query for each value in a loop | DJ-Sound | Programming | 5 | 10-19-2009 03:05 PM |
| overture question | Scorpio | Domain Newbies | 2 | 09-25-2004 07:04 AM |
| Great Domain Typo Generator Script | jaydons | Scripts For Sale | 2 | 08-20-2004 06:19 AM |
| Domain Typo Script | jaydons | Scripts For Sale | 8 | 08-08-2004 10:49 AM |