Php Mysql Select Into Array Methods Javascript Questions