php array
Posted: Sat Apr 23, 2011 6:43 am
please i need your help. i need to output the result below in this format $array = array('45', '92' , '91','94', '90', '12', '104', '105', '93');
Code: Select all
$checkfresult = mysql_query("SELECT name, state FROM users"); $users = array(); while($thecount = mysql_fetch_assoc($checkfresult)){ $users[] = $thecount; }; $array = array('45', '92' , '91','94', '90', '12', '104', '105', '93');