I am wondering how I can change the code below, so that I can pull the results form the database and store them as a numeric array. I have tried searching for an answer online and I know you use SQLI_NUM, but I haven't been able to implement it. Any help would be really appreciated.
/
$lecturers_temp = array();
$i = 0;
$q3 = "SELECT `uninum` FROM `availabilityindex` ORDER BY `availability`";
$result3 = @mysqli_query($dbcon,$q3);
while ($row3 = mysqli_fetch_array ($result3, MYSQLI_ASSOC)){
$lecturers_temp = $row3['uninum']; //
$lecturers_temp[$i] = $row3['uninum']; //'uninum'
//echo $lecturers_temp [$i] . "<BR><BR>";
$i++;
}
$row3['uninum'];to be numeric rather than a string?