I created a script where I set a array in an existing array through a while loop from a SQL database.
while ($nextday = odbc_fetch_array($nextdayinfo)){
$username = $nextday['user_sign'];
if(isset($username)){
$nextday[] = array('value' => $username, 'text' => $username);
}
}
This is the code. If I try to print_r($nextday) after the IF clause, it will show me all the information, as soon as i put the print_r($nextday) after the while clause, it stops working.
$nextday? Array? Or result returned from_fetch?