I am hoping someone can help me with this. I am trying to extract all the values from a single column of a database and store the returned values in a numeric array.
$num = 1;
$q = "SELECT `uninum` FROM `participants` WHERE `islecturer` = '".$num."'";
$result = @mysqli_query ($dbcon, $q);
$storeArray = array();
while ($row = mysqli_fetch_array($result, MYSQLI_NUM)) {
$storeArray [] = $row['uninum'];
}
echo $storeArray [1];