ERROR ! in MYSQLI and PHP

I have this line of code which seems to be ok ! but when i refresh the page it show me errors :

the error i get from the browser when i want to refresh !

Warning : mysqli_fetch_all() expects parameter 1 to be mysqli_result, boolean given in C:\xampp\htdocs\php\index.php on line 10

Warning : mysqli_free_result() expects parameter 1 to be mysqli_result, boolean given in C:\xampp\htdocs\php\index.php on line 11

I do not understand what is wrong !! everything seems to be totally fine ?!
how to fix that ??

Is it a typo in the $sql? Creared?

thank you but that is not a typo error . i am using MYSQLi.

LOL I know. But at the end of your statement you want so sort by creared_at. Did you mean creaTEd_at???

1 Like

goshhh !!! so sorry do not understand me wrong please . :unamused: i really checked it many times my mind was kindda warming up :upside_down_face: :joy: :rofl: i really missed that part. you are right . That is a stupid typo problem from me. Thank youuu soo much.