this question has answer here:
i have php script
<?php include ("db.php"); $result = mysql_query("select fbuid fbusers"); while($array = mysql_fetch_array ($result)){ print("alert ($array[0]);"); } ?>
i want store returned values in javascript variable or array can check if fb user it's registered in app. tell me how store mysql_fetch_array
javascript?
you can create div use php code has unique id , concatenate $arrays in div, use following in javascript values
var x=document.getelementbyid("your_div_id"); alert(x.innerhtml);
Comments
Post a Comment