'; $result = @mysql_query('SELECT commenttext, commentdate, name, email FROM comments'); if (!$result) { echo 'Error performing query: ' . mysql_error(); } ?>
'; $tr=1; while ($row = mysql_fetch_array($result)) { echo '' . $row["name"] . ' says:
' . $row['commentdate'] . '
' . $row['commenttext'] . ''; if($tr==1){ $tr=2; } else if($tr==2){ $tr=1; } } echo ''; echo '
'; echo 'Add comment!'; ?> "; while($row = $pagedResults->fetchPagedRow()) { echo "
  • {$row}
  • "; } echo ""; $pagedResults->setLayout(new DoubleBarLayout()); echo $pagedResults->fetchPagedNavigation(); ?> $names = array("hello","etc..."); Instead of a list of works inside the array I want to display the comments info inside the database, but it identifies it as 'id', and retrieves the # of comments inside of the DB and creates the pages accordingly. Everything is functional, but combining them is the problem, I just can't figure it out. Now: Comment List ---------------------------- Comment 1 -------------------------- ---------------------------- Comment 2 -------------------------- Array List penis penis penis penis penis etc... 1 | 2 | 3 After: ---------------------------- Comment 1 -------------------------- ---------------------------- Comment 2 -------------------------- etc... 1 | 2 | 3