mcgheemail.com blogs recent posts:0) { break; } //to ensure that if there are less than 1 posts the blog will not break the query $maxarray = "SELECT entry_title, entry_id, entry_created_on FROM mt_entry WHERE entry_created_on = '".$rowid['entry_created_on']."' and entry_id = ".$rowid['entry_id']; $resultmax = mysql_query($maxarray) or die (mysql_error()); while ($rowmax = mysql_fetch_array($resultmax)) { $ids = array($rowmax['entry_id']); $date = ($rowmax['entry_created_on']); $title = ($rowmax['entry_title']); //saves the data int alldata array for use outside of the while loop $alldates[$blogcount++] = $date; $alldata[$blogcount++] = array('bname'=>$bname, 'burl'=>$burl, 'bdesc'=>$bdesc, 'bid'=>$bid, 'ids'=>$ids, 'title'=>$title); } $count++; } } array_multisort($alldates, SORT_DESC, $alldata); echo ""; for ($i=0; $i"; echo ' '; echo ''; echo '' ; echo ''; } echo "
', $alldata[$i]['bname'], '', $alldata[$i]['title'], '', $alldates[$i], '
"; ?>


blog admin