HeLlo
Im kinda stuck with a little issue.
I have this query to select from my database, the thing is if more than one result is selected i want to be able to write x amount to a query.
The query works but only 1 per son is selected not two
if (isset($_POST["firstname"]) && isset($_POST["class_num"])) {
$stmt = $this->db->prepare('SELECT id, class_status FROM School WHERE class_num=? AND firstname=?')
$stmt->bind_param("is",$class_num, $firstname);
$stmt->execute();
$stmt->bind_result($id ,$class_status);
$result = array(
"class_status"=>$class_status,
);
Not to sure where to begin so if more than one person is selcted it gets written to the array