I have this php script
<?php
include ("db.php");
$result = mysql_query("SELECT fbuid from fbusers");
while($array = mysql_fetch_array ($result)){
print("alert ($array[0]);");
}
?>
I want to store the returned values in a javascript variable or array so I can check if a fb user it's already registered in my app.
Could somebody tell me how could I store the mysql_fetch_array
to javascript?