I am not able to select data of a MySQL table through PHP

I am trying to select the data I have put into the table created in the MySQL database. I have connected correctly to the database, but the query tells it doesn’t contain anything. I added 2 rows to the table but it looks like the code doesn’t read them as being > 0. I have tried by using both procedural and OOP way. It tells me that the query has given 0 results but I expect an output like the table you will see below (after the code).

Sorry for the late, but put the code, else I can’t help you