echo enter
jeg har den her tagwall og den fungere fint!jeg vil bare godt have at den laver linjeskift mellem hvert tag.
selve scriptet ser sådan her ud:
<?
require('config.php');
if( $navn && $tag )
{
$tid = date("d/m Y - H:i");
$navn = addslashes($navn);
$tag = addslashes($tag);
$email = addslashes($email);
$query = "
INSERT INTO
wall
(
navn,
tag,
farve,
email,
ip,
dato
)
VALUES
(
'$navn',
'$tag',
'$farve',
'$email',
'$REMOTE_ADDR',
'$tid'
)
";
mysql_query($query);
}
?>
<form method=post>
<table width="463" border="0" cellspacing="0" cellpadding="0" height="1">
<tr>
<td width="5" height="20">
<font color="#294E6D" face="Verdana">
<img src="box_leftcorner.gif" width="5" height="20"></font></td>
<td background="box_middle.gif" class="header" width="453" height="20">
<p align="center">
<b><font face="Verdana" size="2">Crew</font></b></td>
<td width="5" height="20">
<font color="#294E6D" face="Verdana">
<img src="box_rightcorner.gif" width="5" height="20"></font></td>
</tr>
<tr>
<td width="5" height="1" background="box_leftside.gif" rowspan="2"></td>
<td background="box_fill.gif" width="453" height="34">
<table border=0 cellspacing=0 cellpadding=0>
<tr><td width=50><font size=1 face=Verdana><b>Navn :</td><td><input type=text size=16 name=navn></td></tr>
<tr><td width=50><font size=1 face=Verdana><b>Email :</td><td><input type=text size=16 name=email></td></tr>
<tr><td width=50><font size=1 face=Verdana><b>Farve :</td><td><select name=farve>
<option value="000000" selected>----Vælg Farve----</option>
<option value="000000">Sort</option>
<option value="0000FF">Blå</option>
<option value="FF0000">Rød</option>
<option value="00FF00">Grøn</option>
<option value="FF00FF">Lilla</option>
</select></td></tr>
<tr><td width=50><font size=1 face=Verdana><b>Tekst :</td><td><input type=text size=36 name=tag></td></tr>
</table>
<p>
<input type=submit value="Skriv et TaQ :)"> </td>
<td width="5" height="1" background="box_rightside.gif" rowspan="2"></td>
</tr>
<tr>
<td background="box_fill.gif" width="453" height="1">
</td>
</tr>
<tr>
<td width="5" height="1">
<font color="#294E6D" face="Verdana" style="font-size: 9pt">
<img src="box_leftbottom.gif" width="5" height="4"></font></td>
<td background="box_middlebottom.gif" height="1" width="453"></td>
<td width="5" height="1">
<font color="#294E6D" face="Verdana" style="font-size: 9pt">
<img src="box_rightbottom.gif" width="5" height="4"></font></td>
</tr>
</table>
</form>
<p>
<br><br>
</p>
<table width="463" border="0" cellspacing="0" cellpadding="0" height="1">
<tr>
<td width="5" height="20">
<font color="#294E6D" face="Verdana">
<img src="mit_web-sted6/box_leftcorner.gif" width="5" height="20"></font></td>
<td background="mit_web-sted6/box_middle.gif" class="header" width="453" height="20">
<p align="center">
<b><font face="Verdana" size="2">Crew</font></b></td>
<td width="5" height="20">
<font color="#294E6D" face="Verdana">
<img src="mit_web-sted6/box_rightcorner.gif" width="5" height="20"></font></td>
</tr>
<tr>
<td width="5" height="1" background="mit_web-sted6/box_leftside.gif" rowspan="2"></td>
<td background="mit_web-sted6/box_fill.gif" width="453" height="34">
<?
$result = mysql_query("select * from wall order by id desc LIMIT 0, 100");
while($row = mysql_fetch_array($result))
{
$farve = $row[farve];
$email = $row[email];
$navn = $row[navn];
$tag = $row[tag];
$dato = $row[dato];
$tag = stripslashes($tag);
$navn = stripslashes($navn);
$tag = htmlentities($tag);
$navn = htmlentities($navn);
$email = htmlentities($email);
echo "<font face=verdana size=1 color=\"$farve\">";
echo "<a href=\"mailto:$email\">$navn</a> : $tag <font color=000000>[$dato]";
echo "</font>\n";
}
?>
</td>
<td width="5" height="1" background="mit_web-sted6/box_rightside.gif" rowspan="2"></td>
</tr>
<tr>
<td background="mit_web-sted6/box_fill.gif" width="453" height="1">
</td>
</tr>
<tr>
<td width="5" height="1">
<font color="#294E6D" face="Verdana" style="font-size: 9pt">
<img src="mit_web-sted6/box_leftbottom.gif" width="5" height="4"></font></td>
<td background="mit_web-sted6/box_middlebottom.gif" height="1" width="453"></td>
<td width="5" height="1">
<font color="#294E6D" face="Verdana" style="font-size: 9pt">
<img src="mit_web-sted6/box_rightbottom.gif" width="5" height="4"></font></td>
</tr>
</table>
<? mysql_close(); ?>
jeg ved at min <br> og <hr> så sættes ind imellem det her.
echo "<font face=verdana size=1 color=\"$farve\">";
echo "<a href=\"mailto:$email\">$navn</a> : $tag <font color=000000>[$dato]";
echo "</font>\n";
}
?>
men kan ikke lige huske hvordan man gør! kan i hjælpe!
