Hello!
I've made a site called 'About us' on norwegian it means 'omoss' in my code;)
But when i am displaying my code the hole page is white!
I can't find the error.
Can someone pleas help me?
<?php include('connect.php'); ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>rediger omm oss</title>
<script type="text/javascript" src="tiny_mce/tiny_mce.js"></script>
<script type="text/javascript">
tinyMCE.init({
theme : "advanced",
mode : "textareas",
plugins : "fullpage",
theme_advanced_buttons3_add : "fullpage"
});
</script>
</head>
<body>
<div class="rediger"><?php if ($_POST['Oppdater'])
{
$nytt = ($_POST['omoss']);
$oppdater = mysql_query("SELECT * FROM 'omoss' WHERE 'id'='1'") or die(Error);
$row = mysql_fetch_assoc($oppdater);
$gammelt = $row['innhold'];
$querychange = mysql_query("
UPDATE omoss SET innhold='$nytt' WHERE id='1'
");
echo "
<form action='rediger_om.php' method='post'>
<textarea name='omoss' id='omoss'>$gammelt</textarea>
<input type='submit' value='Oppdater' id='oppdater' name='oppdater' />
</form>
";
}
?>
</div>
</div>
</body>
</html>
Thanks for the help!:)