Hej
Er der nogen der kan hjælpe mig med at fejlsøge i denne søgecode...? den viser slet ikke noget når jeg søger...
<?
$connect = mysql_connect("localhost","xxx","xxx");
mysql_select_db("xxx");
?>
<html>
<head>
<title>:::Officielle hjemmeside for Gørløse SI Fodbold 2007:::</title>
<link rel="shortcut icon" href="ikon.ico" type="image/x-icon"/>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta NAME="Title" CONTENT="Gørløse SI - Sambabold når det er bedst!">
<meta NAME="description" CONTENT="Gørløse SI - Sambabold når det er bedst!" />
<meta NAME="keywords" CONTENT="gørløse, gørløse fodbold, gørløse si, gsi, serie 3, serie 6, veteran, miniputter, lilleputter, hader fck, brasiliansk sambabold!" />
<style type="text/css">
<!--
@import url("style/style.css");
body {
background-color: #DCDCDC;
}
.overskrift {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 10px;
font-weight: bold;
}
.brodtekst {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 10px;
}
a:link {
color: #000000;
text-decoration: none;
}
a:visited {
text-decoration: none;
color: #000000;
}
a:hover {
text-decoration: underline;
color: #666666;
}
a:active {
text-decoration: none;
color: #000000;
}
.style2 {font-size: 9}
.gsi_bag_link {
background-color: #FFFFFF;
background-image: url(billeder/baggrund.jpg);
background-repeat: no-repeat;}
-->
</style>
</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<!-- ImageReady Slices (Untitled-3) -->
<table width="1024" height="768" border="0" align="center" cellpadding="0" cellspacing="0" id="Table_01">
<tr>
<td colspan="11">
<img src="billeder/top_streg.gif" width="1024" height="12" alt=""></td>
</tr>
<?
$idagdato = date("d",$tid);
$idagmon = date("m",$tid);
$idagyear = date("Y",$tid);
$idagtiden = mktime(0, 0, 0, $idagmon, $idagdato, $idagyear);
$s_nyhed = mysql_query("SELECT * FROM nyheder WHERE godkendt = 'ja' AND startdato <= '$idagtiden' AND slutdato > '$idagtiden' ORDER BY id DESC LIMIT 1");
$nyhed = mysql_fetch_array($s_nyhed);
$startregnet = $nyhed[startdato]-$idagtiden;
$slutregnet = $nyhed[slutdato]-$idagtiden;
?>
<tr>
<td rowspan="5">
<img src="billeder/hojre_side.gif" width="115" height="756" alt=""></td>
<td colspan="9"><img src="billeder/banner_nyhedsarkiv.jpg" width="800" height="135"></td>
<td rowspan="5"><img src="billeder/venstre_side.gif" width="109" height="756" alt=""></td>
</tr>
<tr>
<td>
<a href="index1.php"><img src="billeder/forside_knap.gif" alt="" width="83" height="19" border="0"></a></td>
<td>
<a href="nyhedsarkiv.php"><img src="billeder/nyhedsarkiv_knap.gif" alt="" width="113" height="19" border="0"></a></td>
<td>
<a href="resultater.php"><img src="billeder/resultater_knap.gif" alt="" width="91" height="19" border="0"></a></td>
<td>
<a href="hold_og_spillere.php"><img src="billeder/hold_spiller_knap.gif" alt="" width="116" height="19" border="0"></a></td>
<td>
<a href="media.php"><img src="billeder/media_knap.gif" alt="" width="78" height="19" border="0"></a></td>
<td>
<a href="forum.php"><img src="billeder/forum_knap.gif" alt="" width="68" height="19" border="0"></a></td>
<td>
<a href="sponsorer.php"><img src="billeder/sponsor_knap.gif" alt="" width="92" height="19" border="0"></a></td>
<td>
<a href="links.php"><img src="billeder/links_knap.gif" alt="" width="68" height="19" border="0"></a></td>
<td>
<a href="kontakt.php"><img src="billeder/kontakt_knap.gif" alt="" width="91" height="19" border="0"></a></td>
</tr>
<tr>
<td height="445" colspan="9" background="images/forside_14.gif"><table width="800" height="476" border="0" background="billeder/indhold_baggrund.gif" class="gsi_bag_link">
<tr>
<td width="19" rowspan="5"> </td>
<td width="548" height="43" class="overskrift"><table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="233"> </td>
</tr>
<tr class="broedtekst">
<td><img SRC="streg.jpg" width="233" height="1" /></td>
</tr>
<tr class="broedtekst">
<td><span class="style2"><br />
Søg i GSI arkivet:</span><br />
<label>
<FORM ACTION="<? PHP_SELF ?>" METHOD="post">
<input type="text" name="sogeord" />
<input type="submit" name="sog" value="Søg" />
<br />
</form>
</label></td>
</tr>
<?
if($_POST[sog]) {
?>
<tr class="broedtekst">
<td class="style2"> </td>
</tr>
<tr class="broedtekst">
<td class="style2"><img SRC="streg.jpg" width="233" height="1" /></td>
</tr>
<tr class="broedtekst">
<td class="style2"><?
$s_soeg = mysql_query("SELECT id FROM nyheder WHERE overskrift AND nyhed LIKE '%$_POST[sogeord]%' ORDER BY id");
$soeg = mysql_num_rows($s_soeg);
if($soeg == '0' OR $_POST[sogeord] == '') {
print"Søgningen gav ingen resultater.";
} else {
$s_vis = mysql_query("SELECT * FROM nyheder WHERE overskrift LIKE '%$_POST[sogeord]%' ORDER BY id DESC LIMIT 999");
WHILE($vis = mysql_fetch_array($s_vis)) {
$dato = date("d",$vis[tid]);
$mon = date("m",$vis[tid]);
$year = date("Y",$vis[tid]);
$tidspunkt = date("H:i:s",$vis[tid]);
print"<span class=\\"linkNyhed\\"><a HREF=\\"nyhed.php?id=$vis[id]\\">$vis[overskrift]</a></span> ($dato-$mon) <br />";
}
}
?> </td>
</tr>
<?
} else { }
?>
</table></td>
<td colspan="2" rowspan="5"> </td>
<td width="214"> </td>
</tr>
<tr>
<td height="57"></td>
<td> </td>
</tr>
<tr>
<td rowspan="2"><script src="http://www.bolddk.com/nyt/avis.php?nn=5&key=&lo=1&wi=1&tf=1" type="text/javascript"></script><style>
/* Tekst nyhedsavis-overskrift */
.bold_boldheader {
font-family : Verdana, Geneva, Arial, Helvetica, sans-serif;
font-size : 12px;
color : #000000;
text-decoration: none;
font-weight: bold;
}
/* Tekst artikel-overskrifter */
.bold_headline {
font-family : Verdana, Geneva, Arial, Helvetica, sans-serif;
font-size : 9px;
color : #999999;
text-decoration: none;
font-weight: normal;
}
/* Tekst artikel-tidspunkter */
.bold_time {
font-family : Verdana, Geneva, Arial, Helvetica, sans-serif;
font-size : 9px;
color : #999999;
text-decoration: none;
font-weight: normal;
}
/* Søgefelt */
.bold_input {
font-family : Verdana, Geneva, Arial, Helvetica, sans-serif;
font-size : 9px;
color : #999999;
text-decoration: none;
font-weight: normal;
}
/* Linjeskift top */
.bold_linebreak_top {
font-size : 2px;
}
/* Linjeskift artikler */
.bold_linebreak {
font-size : 2px;
}
</style></td>
<td> </td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td> </td>
<td> </td>
</tr>
</table></td>
</tr>
<tr>
<td colspan="9">
<img src="billeder/copyright_bund.gif" width="800" height="20" alt=""></td>
</tr>
<tr>
<td colspan="9">
<img src="billeder/bund.gif" width="800" height="137" alt=""></td>
</tr>
</table>
<!-- End ImageReady Slices -->
</body>
</html>
Indlæg senest redigeret d. 15.02.2008 17:37 af Bruger #10467