fange data fra mysql
jeg har prøvet rette dette script til men jeg for ikke noget resultat ud ?<?php
Header("Content-Type: text/html; charset=utf-8");
if ($seek) {
$connection = mysql_connect("localhost","****","******");
mysql_select_db('esbnyt', $connection);
$result = mysql_query("select * FROM rd_Link2You WHERE title LIKE '%$seek%' order by id asc ")or die(mysql_error());
$number = mysql_num_rows($result)or die(mysql_error());
echo "<center>Din søgning på: <b>$seek</b> gav $number resultater</center>";
while ($row = mysql_fetch_array($result)) {
//print "<li><a href="$row['link']" >$row['name']</a><br>$row['title']<br>åbent: $row['link'] gange</li><br><br>";
echo '<a href="#" submit="window.open(\''.$row['link'].'\');">'.$row['title'].'</a><br>'.$row['discription'].$separator;
}
} elseif ($seek) {
echo "Du skrev ikke noget søgeord!!";
} else {
?>
<form action="http://www.esbnyt.dk/seek.php\" method="get"><FONT FACE="Verdana, Arial, Helvetica, sans-serif" SIZE="1">
Søg: <input type="text" name="seek"><input type="submit" name="sog" value="Søg"></FONT></form>
<FONT FACE="Verdana, Arial, Helvetica, sans-serif" SIZE="1"><br><br><br>
<?
}
?>