$result=mysqli_query($sql,$con)
if($row=mysqli_fetch_assoc($result){}
Why is the if condition not executed?
寻觅 beyond2018-02-02 16:27:52
If no error is reported, it means that it has been executed.
You can print the contents of $result. Also,
Are you sure that the two parameters of your mysqli_query are not misplaced? ? ? ? ?
phpcn_u1029452018-01-28 16:59:39
if($row=mysqli_fetch_assoc($result){}
There are missing brackets, you should see the system prompts to find it!
Correct: if($row=mysqli_fetch_assoc($ result)){}