Hej.. hvorfor skriver den dette?
Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE,
expecting T_STRING or T_VARIABLE or T_NUM_STRING in
/var/www/hotserv.dk/users/musiklir/tagwall1/oversigt1.php on line
94
Hmm, du kan lige få sidens kode:
<html>
<head>
<style type="text/css">
input
{font-family: Tahoma, Arial; font-size: 8pt; background-color:
#D4D4D4; border-color: red; border-width:1; width:200px;
heigth:20px; border: 1px solid #FF0000;}
textarea
{font-family: Tahoma, Arial; font-size: 8pt; background-color:
#D4D4D4; border-color: red; border-width:1; width:200px;
heigth:20px; border: 1px solid #FF0000;}
</style>
<LINK rel="stylesheet" href="../style.css" type="text/css">
</head>
<body align="center">
<p>
<?php
include("config.php");
?>
<a href="tagwall.php?amp;more=1">Se flere tags</a> <a
href="tagwall1.php" style{text-decoration:none;
color="#000"}>|</a> <a
href="tagwall.php?action=write">Skriv</a><br>
<?php
$action = @$_GET['action'];
if ($action=='write') {
echo '<form method="post" action="tagwall.php" align="center">
<table cellSpacing="0" cellPadding="0" border="0">
<tr>
<td width="226">Dit navn:</td>
<td><input id="name" class="text" size="30" name="navn"></td>
</tr>
<tr>
<td><p>Din e-mail</p></td>
<td><input name="email" class="text" type="text" id="email"
size="30"></td>
</tr>
<tr>
<td><p>Din hjemmeside</p></td>
<td><input name="url" class="text" type="text" id="url"
size="30"></td>
</tr>
<tr>
<td valign="top" height="132">Din besked:</td>
<td height="132"><textarea id="text" class="textarea"
name="text" rows="8" cols="35"></textarea></td>
</tr>
<tr>
<td height="40"> </td>
<td vAlign="bottom" height="40">
<input type="submit" class="submit" value="Tilføj Besked!"
name="Submit"><br>
<input type="reset" class="submit" value="Slet alt!"
name="Reset"></td>
</tr>
<tr>
<td height="22"> </td>
<td vAlign="bottom" height="22">Alle felter skal
udfyldes!!</td>
</tr>
</table>
</form>';
} else {
$navn = @$_POST['navn'];
$email = @$_POST['email'];
$email = @$_POST['url'];
$text = @$_POST['text'];
$time = date("Y-m/d H:i:s");
if (@$_POST['navn'] == "Navn") {
$navn = "Anonym";
}
if (@$_POST['email'] == "E-mail") {
$email = "null@null";
}
if (@$_POST['url'] == "url") {
$url = "Anonym";
}
mysql_connect("$host", "$user", "$password") or
die(mysql_error());
mysql_select_db($database) or die(mysql_error());
$ip = $_SERVER['REMOTE_ADDR'];
if(!empty($_POST['text'])){
$insertSQL = "insert into tagwall (navn, email,url, time, ip,
text) values ('".addslashes($navn)."',
'".addslashes($email)."','".addslashes($url)."', '$time', '$ip',
'".addslashes($text)."')";
mysql_query($insertSQL)or die(mysql_error());
}
?>
<?php
if (@$_GET['more']) {
$limit = 1000;
} else {
$limit = 10;
}
if(!empty($id)){
$hent = mysql_query("SELECT * FROM tagwall WHERE id = '$id'") or
die(mysql_error());
$vis = mysql_fetch_array($hent);
echo " $vis['navn'] <br>";
echo " $vis['email']<br>";
echo " $vis['url']<br>";
echo " $vis['time']<br>";
echo "<hr>";
echo "$vis['tekst']";
}
?>
<a href="tagwall.php?amp;more=1">Se flere tags</a> | <a
href="tagwall.php?action=write">Skriv</a>
</p>
</body>
</html>
Skal siges at jeg er 2tal newbee til php, så vil gerne have god
hjælp,..
--
Vil du lære at kode HTML, XHTML, CSS, SSI, ASP eller ASP.NET?
- Pædagogiske tutorials på dansk
- Kom godt i gang med koderne
KLIK HER! =>
http://www.html.dk/tutorials