Output all records in php version