[FX.php List] Record Count after the fact
Gjermund Gusland Thorsen
ggt667 at gmail.com
Fri Feb 16 10:39:18 MST 2007
Yes, like this, this is how I do it too, I would like to add that I
only do the echo in <body>, the "baking" of the variable I do above
<HTML> and !DOCTYPE
<?php // Please use long tags, just in case you ever need to do some XML on
the page
$tempHtml =NULL; //set my variable for collecting the html
foreach($searchResult['data'] as $key => $value) {
if(empty($value['flag'][0] )) {
$price = "${$value['price'][0]}";
}else{
$price = "Call";
}
$tempHtml .= "
<tr><td>blah</td></tr>
<tr><td>$price</td></tr><tr><td>blah</td></tr>";
}
echo $tempHtml;
?>
More information about the FX.php_List
mailing list