function ConnectToDb()
{
// Connect to the database and return
// true/false depending on whether or
// not a connection could be made.
$s = @mysql_connect('localhost', 'yournewtomorrow_db', 'Q!55uK4zTj^E');
$d = @mysql_select_db('yournewtomorrow_db', $s);
if(!$s || !$d)
return false;
else
return true;
}
if(!$page and !$app){
$page= "home";
}
if($page){
$cxn = @ConnectToDb();
mysql_set_charset('utf8');
$result = mysql_query("select * from page where displayitem='$page' and lang='$language'");
$returnres = mysql_num_rows($result);
if($returnres=="0"){
echo "
The page ($page) you have requested does not exist. Please navigate to another page using the menu. If you believe the link you are trying to access is correct, please email us.
"; }else{ while($row = mysql_fetch_array($result)) { $value = $row["value"]; print "$value"; } } } ?>

