RE: [PHP] pulling data from array
| From: | Boyd, Todd M. | Date: | Mon, 08 Sep 2008 19:30:03 +0000 |
| Subject: | RE: [PHP] pulling data from array | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-279690@lists.php.net to get a copy of this message | ||
> -----Original Message-----
> From: Boyd, Todd M.
> Sent: Monday, September 08, 2008 2:28 PM
> To: 'Richard Kurth'; 'php-general@lists.php.net'
> Subject: RE: [PHP] pulling data from array
---8<--- snip
> <?php
>
> # now loop through your object array and translate to js function
calls
>
> foreach($objArray as $record) {
> echo "data.setCell(0, 0, '{$row['firstname']}',
> '{$row['lastname']}');";
> }
>
> ?>
That should have been {$record['firstname']}, etc... not $row. My
bad--it's been a long day. :P
Todd Boyd
Web Programmer