The problem is the table name! I have tried with other tables I have in the same database, even with random names and it is working, but not with info_XboxOne table name. What is happening?
If you put quotes around the table name in the query, does it make any difference? If you use that table name in any other query, does it work there? For example, the code you use to add the entries to the table before you extract them here - is that working?
I have tried using the table name in another statement and it works fine. With the comas is not giving me errors but is not taking any data from the database.
As it’s a different table, is the column name for your ORDER BY clause still correct? What happens if you type that query in to phpmyadmin (or whatever you use) and execute it from there?
I think the problem is the amount of data…because I am given this error:
Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 32 bytes) in /Applications/XAMPP/xamppfiles/htdocs/xboxone/index.php on line 15
OK, hard to tell then as I can’t tell which is line 15. If it’s the fetchAll() line, you could iterate through the results individually with fetch() instead.