that will echo the usernames but how about the pagination and limits to what is viewed on a page...thanks for the help btwCode:<?php
mysql_connect("localhost", "root", "") or die(mysql_error());
mysql_select_db("registration") or die(mysql_error());
echo "var commentsbook={\n"; //Dynamically output javascript variable
$commentids=mysql_query("SELECT * from `users`"); //get IDs to last 5 comment pages
$idarray=array();
while ($theid=mysql_fetch_array($commentids)){
array_push($idarray, "'" . $theid[username] . "'");
}
echo "pages: [" . implode(",",$idarray) . "],\n"; //output: pages: [filepath1, filepath2, file
echo "selectedpage: 0\n}";
?>
