Domanda da database, non hai problemi con PHP, ma con MySQL.