echo "var bNames = new Array(";
$sql = "SELECT book_name FROM books ORDER by book_name";
$rs = mysql_query($sql);
while($row = mysql_fetch_array($rs))
var bNames = new Array("book name 1","book name 2","book name 3","");
If you're in one of those predicaments where cls.__private attributes just aren't enough since they can easily be accessed through inst._cls__private, and you need something a little more secure, here's ...