Call js Function from PHP??
Here is the PHP code that is in the body of my web page (I have x'd out the connection info):
Someone told me not to do it, but I am going to say it anyways: "Thanks in Advance!!"
$dbc = mysqli_connect('xxx','xxx' ,'xxx', 'xxx');
$query = "SELECT * FROM registrations2013" ;
$result = @mysqli_query($dbc, $query) or die("Error: ".mysqli_error($dbc));
echo "connected to database ";
$record = $result->fetch_array(MYSQLI_ASSOC);
foreach ($record as $key => $value)