php - SELECT query failing after updating it -


i modified following query , getting error.

warning: mysqli_fetch_assoc() expects parameter 1 mysqli_result, boolean given

i have read error means , know query wrong. worked before changed query. before...

 $query = mysqli_query($con, "select * users `group` = 3"); 

i changed to...

$query = mysqli_query($con, "select * users `group` = 3, 4 ,5");  $array = array(); while ($row = mysqli_fetch_assoc($query)) { 

what doing wrong in new query?

for comma separated value use in

select * users `group` in(3,4,5); 

Comments

Popular posts from this blog

mysql - FireDac error 314 - but DLLs are in program directory -

git - How to list all releases of public repository with GitHub API V3 -

c++ - Getting C2512 "no default constructor" for `ClassA` error on the first parentheses of constructor for `ClassB`? -