The below code is returning close to what I need, but not all of it. I'm trying to attain this:
but I'm only getting the last "|" deliminated values.Code:stgAst=|ASSET0:portfolio:Some kind of intro.|ASSET1:galleries:These are recent.|ASSET2:contact:I am here.|ASSET3:bio:Past to Present.&total=4
Current code;Code:|ASSET3:bio:Past to Present.&total=4
PHP Code:$select = "SELECT type_id, type_name, type_desc, type_order FROM gallery_type ORDER BY type_order";
$result = mysql_query ($select);
$rows = mysql_num_rows($result);
if ($rows) {
$valuesForFlash = '';
$fileCount = 0;
if ($fileCount < $rows) {
while($list = mysql_fetch_array($result)) {
$torder = $list['type_order'];
$tname = $list['type_name'];
$tdesc = $list['type_desc'];
}
}
$valuesForFlash .= '|ASSET'.$torder.':'.$tname.':'.$tdesc;
$fileCount++;
} else {
echo 'there are no results!';
}
mysql_free_result($result);
$valuesForFlash .= "&total=".$rows;
print $valuesForFlash;




Bookmarks