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
Post a Comment