sabret00the |
12-10-2004 12:09 PM |
'while' not echoing data it was designed for
going into the while i know it exists but coming out for some reason i can't get the data
PHP Code:
// ###################### extracts newest groups for main grps page $grps_newest = $DB_site->query(" SELECT grps.groupid, grps.title, grps.description, grps.approved, grps.leaderid, user.username FROM " . TABLE_PREFIX . "grps LEFT JOIN user ON (user.userid = grps.leaderid) $group $order $limit "); if (!$DB_site->num_rows($grps_newest)) { // no groups, this becomes useless after the first group gets created $grps_newestbits .= "<tr><td class=\"alt1\" align=\"center\">no groups found at this time</td></tr>"; } else { // display the information while ($grps_newestinfo = $DB_site->fetch_array($grps_newest)) { $grps_newestinfo['title'] = stripslashes($grps_newestinfo['title']); $grps_newestinfo['description'] = nl2br(stripslashes($grps_newestinfo['description'])); extract($grps_newestinfo); } //now echo the date into the template eval('$grps_newestbits .= "' . fetch_template("groups_newestbits") . '";'); }
what am i doing wrong?
i just want to have $grps_newestinfo[title],$grps_newestinfo[description] and $grps_newestinfo[username] appear in a template but i can't get em to appear at all for some reason.
|