[FX.php List] Current function

Bob Patin bob at patin.com
Thu Nov 13 12:14:01 MST 2008


Yes, but you don't *have* to contain the FOREACH in brackets; if there  
is one record returned, I always use a semicolon.

That shouldn't make any difference in whether $recid is echoed; why  
doesn't this work?

foreach( $queryResult['data'] as $key=>$queryData );
list( $recid, $modid ) = explode( '.', $key );
echo $recid;

There's no need for the carriage return... it should just echo the  
variable... but on my page, it doesn't.


On Nov 13, 2008, at 1:09 PM, Gjermund Gusland Thorsen wrote:

> Like this:
> ---
> foreach( $queryResult['data'] as $key=>$queryData ) {
> list( $recid, $modid ) = explode( '.', $key );
> echo $recid .'<br />' . "\n";
> }
> ---
> g



More information about the FX.php_List mailing list