MySQL table (allow_ip)
username | ip
@@@ |192.215.154.251
|
|
|
I want to take the all the ip and create array but dont work!
$rs=$mysqli->query('SELECT ip FROM allow_ip');
$i=0;
while($row = $rs->fetch_assoc())
{
$allow[$i]=$row['ip'];
$i++;
}
I want this: $allow = array("ip[0]", "ip[1]",....,"ip[x]");