Is there any php function that will let me retrieve data from mysql in numeric array. If there's no function for that, how can I do it?
I am trying to retrieve a list of email from a database, but I need to retrieve those emails in a numeric array. I tried this but it's not working.
$a=mysql_connect("X","X","X");
mysql_select_db("X",$a);
function num(){
$email=mysql_query("select email from X");
while($re=mysql_fetch_array($email)){
print $re[0];
print "<br>";
}
}
num();