<% //Create connection to mySQL database //substitute own hostname, username and password $connection = mysql_connect("localhost","root","DaBur9bsh") or die("Could not connect to server"); //Select database //Substitute your own database name $db = mysql_select_db("GOGF", $connection) or die("Couldn't select database"); //Create SQL Statement $sql = "SELECT * FROM NEWSLETTER "; //Execute SQL and get result $sql_result = mysql_query($sql,$connection) or die("Couldn't execute query"); echo " GOGF Newsletter

.

"; while($row = mysql_fetch_array($sql_result)) { $IDV = $row["ID"]; $HeadingV = $row["Heading"]; $SalutationV = $row["Salutation"]; $Para2V = $row["Para2"]; $Para3V = $row["Para3"]; $Para4V = $row["Para4"]; $Para5V = $row["Para5"]; $Para6V = $row["Para6"]; $Para7V = $row["Para7"]; $Para8V = $row["Para8"]; $Para9V = $row["Para9"]; $Para10V = $row["Para10"]; $Para11V = $row["Para11"]; echo "
$HeadingV



$SalutationV


$Para2V

$Para3V

$Para4V

$Para5V

$Para6V

$Para7V

$Para8V

$Para9V

$Para10V

$Para11V



"; } echo "
 
Copyright 1988, The Grand Old Gospel Fellowship, Inc. All rights reserved.
160 East Main Street, Lansdale, PA 19446-2519. (215) 361-8111
"; //Free resources and close connection mysql_free_result($sql_result); mysql_close($connection); %>