Php While Loop Sql Query Commands List