$mysql_connection = new mysqli(blah blah blah..
$query = "SELECT * FROM posts ORDER BY id DESC";
$result = $mysql_connection->query($query);
That little last instruction here generates a 500 Internal Server Error in my site, I didn’t posted the whole code because I didn’t want to make you stay hours to read it.
I tested it by printing something after every instruction that may have caused the error, and when it reaches the query part, id stops.
I’m a very beginner in PHP, so sorry if it’s a dumb question.
So, any little hint will be very appreciated.
it looks like the connection is not going through for some reason
can you add this to your code and post the output