I’m working on a php page and I want to display usernames according to a parameter that we’ll call h. So basically, I want to take all the ids from an sql database where h="x" but when I use my code only the first row gets fetched to the array:
$query = "Select id from $usertable where hschool='$hschool'";
$Mquery = mysql_query($counting);
$Array = mysql_fetch_array($counting);
I’ll appreciate all the help you can give me!