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

html - Firefox flex bug applied to buttons? -

html - Missing border-right in select on Firefox -

python - build a suggestions list using fuzzywuzzy -