Hey jeg har et problem med ny linje i mit script når du laver en ny linje så laver den det her
www.generationx.dk/tag
der kan i se det men i skal vil også lige have koden...
<head>
<link href="tagwall.css" rel="stylesheet" type="text/css">
</head>
<body>
<div align="center">
<a href="post.php" onclick="MyWindow=window.open('post.php','MyWindow', 'toolbar=no,location=no,directories=no,status=no, menubar=no,scrollbars=,resizable=no,width=300, height=250,left=25,top=25'); return false;" target="_blank">Tilføj Tag</a>
<br><br><?
require("config.php");
mysql_connect($host, $user, $pass);
mysql_select_db($db);
$inforesult = mysql_query("SELECT id, date, name, name, mail, messege FROM $tabel order by id desc");
echo mysql_error();
if(mysql_num_rows($inforesult) > 0) {
while ($info = mysql_fetch_array($inforesult)) {
?>
<table style="border: 2px solid black;" cellpadding="1" cellspacing="0" width="421">
<tr>
<td width="69">Skrevet Af</td>
<td width="10">
<div align="center">
<b>:</b></div>
</td>
<td width="128"><b><a href="mailto:<? echo($info[mail]); ?>" style="color: black; text-decoration: none"><? echo($info[name]); ?></a></b></td>
<td width="17"></td>
<td width="30">Dato</td>
<td width="10">
<div align="center">
<b>:</b></div>
</td>
<td><b><? echo($info[date]); ?></b></td>
</tr>
<tr>
<td colspan="7">
<hr noshade>
</td>
</tr>
<tr>
<td width="69">Besked</td>
<td width="10">
<div align="center">
<b>:</b></div>
</td>
<td colspan="5"><?
mysql_connect("$host", "$user", "$pass");
mysql_select_db("$db");
$besked = nl2br($info[messege]);
$besked2 = htmlentities($besked);
echo indsaetSmily("$besked2");
?></td>
</tr>
<tr>
<td colspan="7">
<div align="right">
<hr noshade>
<b>IP:</b>Logged</div>
</td>
</tr>
</table><br><br>
<?
}
}
else
{
echo "<center><b>Endnu Ingen Tags Tilføjet.</b></center>";
}
function indsaetSmily($tekst) {
$sql = mysql_query("select * from smily");
while($row = mysql_fetch_array($sql)) {
$tekst = str_replace($row['navn'], "<img src=\\"pic/".$row['billede']."\\" /> ", $tekst);
}
return $tekst;
}
?>
<font style="font-size: 9px;">Php Code By :<a href="mailto:barney@generationx.dk" style="color: black; text-decoration: none">Barney</a></font>
<?
/*
php code by må ikke fjernes fjerne den vild du blive straffet efter den danske straffelov
*/
?></div>
</body>
-------------------------------------------
Husk At Besøge www.GenerationX.dk