Mysql
 sql >> Base de Dados >  >> RDS >> Mysql

Criar array PHP da coluna MySQL


você pode percorrer o array e criar um novo, assim:
$column = array();

while($row = mysql_fetch_array($info)){
    $column[] = $row[$key];
//Edited - added semicolon at the End of line.1st and 4th(prev) line

}