Click here to Skip to main content
15,882,017 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
mysqli_fetch_array(): Argument #1 ($result) must be of type mysqli_result, bool given in S:\new xampp\htdocs\php\delete1.php:13 Stack trace: #0 S:\new xampp\htdocs\php\delete1.php(13): mysqli_fetch_array(true) #1 {main} thrown in

What I have tried:

i try to solve with many different ways....
Posted
Updated 23-Mar-22 22:00pm
Comments
Mohibur Rashid 24-Mar-22 2:12am    
1. Your query failed. This is why instead of result it returned boolean
2. You did not write select query but update or insert.

1 solution

You forgot to show us the previous MySQL function that you called. However if you look at the relevant documentation at PHP: MySQL - Manual[^], you will see why it returns a boolean value.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900