Php While Loop Sql Example Format