php pdo query
added pagination to show four entries at a time