RE: pulling data from array

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> -----Original Message-----
> From: Boyd, Todd M.
> Sent: Monday, September 08, 2008 2:28 PM
> To: 'Richard Kurth'; 'php-general@xxxxxxxxxxxxx'
> Subject: RE:  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




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux