Jeg kan iøvrigt se 4 links på den side...
>
> Ja det kan jeg også!
> Jeg vil ikke mene de skal have samme id nr. da det vel er primær nøglen?
ligenu kan i se 4, men de ligger i den samme række og har derfor samme id,
hvilket ikke er meningen, men jo id er den primære nøgle, men det kan godt
være koden jeg har på selve siden er forkert (må hellere indrømme, at jeg
sprang ver hvor gærdet er lavest, og brugte en extension til Dreamweaver,
der nok ikke virker som den skal, men her er koden fra siden (links.php):
<?php require_once('Connections/Database.php'); ?>
<?php
mysql_select_db("bfbv_dk",$db);
$query_links = "SELECT * FROM link";
$links = mysql_query($query_links, $Database) or die(mysql_error());
$row_links = mysql_fetch_assoc($links);
$totalRows_links = mysql_num_rows($links);
# © Peter Affentranger, ANP Affentranger Net Productions,
www.anp.ch
function MakeHyperlink($text) {
$text = preg_replace("/((http(s?):\/\/)|(www\.))([\S\.]+)\b/i","<a
href=\"http$3://$4$5\" target=\"_blank\">$2$4$5</a>", $text);
$text = preg_replace("/([\w\.]+)(@)([\S\.]+)\b/i","<a
href=\"mailto:$0\">$0</a>",$text);
return nl2br($text);
}
?>
<HTML><!-- InstanceBegin template="/Templates/template.dwt"
codeOutsideHTMLIsLocked="false" -->
<HEAD>
<!-- InstanceBeginEditable name="doctitle" -->
<TITLE>Links</TITLE>
<!-- InstanceEndEditable -->
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<!-- InstanceBeginEditable name="head" -->
<!-- InstanceEndEditable -->
<style type="text/css">
<!--
@import url(General.css);
-->
</style>
</HEAD>
<BODY BGCOLOR=#FFFFFF link="#0000CC" vlink="#0000CC" alink="#0000CC"
LEFTMARGIN=0 TOPMARGIN=0 MARGINWIDTH=0 MARGINHEIGHT=0>
<TABLE WIDTH=797 BORDER=0 align="center" CELLPADDING=0 CELLSPACING=0>
<TR>
<TD width="40"> <IMG SRC="images/template_01.gif" WIDTH=40 HEIGHT=20
ALT=""></TD>
<TD width="100"> <IMG SRC="images/template_02.gif" WIDTH=100 HEIGHT=20
ALT=""></TD>
<TD width="100" ROWSPAN=2> <IMG SRC="images/template_03.gif" WIDTH=100
HEIGHT=41 ALT=""></TD>
<TD COLSPAN=2 ROWSPAN=2> <IMG SRC="images/template_04.gif" WIDTH=195
HEIGHT=41 ALT=""></TD>
<TD COLSPAN=2 ROWSPAN=2> <IMG SRC="images/template_05.gif" WIDTH=90
HEIGHT=41 ALT=""></TD>
<TD width="85" ROWSPAN=2> <IMG SRC="images/template_06.gif" WIDTH=85
HEIGHT=41 ALT=""></TD>
<TD width="93" ROWSPAN=2> <IMG SRC="images/template_07.gif" WIDTH=93
HEIGHT=41 ALT=""></TD>
<TD width="97" ROWSPAN=5> <IMG SRC="images/template_08.gif" WIDTH=68
HEIGHT=100 ALT=""></TD>
<TD width="173"> <IMG SRC="images/spacer.gif" WIDTH=1 HEIGHT=20
ALT=""></TD>
</TR>
<TR>
<TD ROWSPAN=4> <IMG SRC="images/template_09.gif" WIDTH=40 HEIGHT=80
ALT=""></TD>
<TD> <a href="index2.htm"><IMG SRC="images/forsiden.gif" ALT=""
WIDTH=100 HEIGHT=21 border="0"></a></TD>
<TD> <IMG SRC="images/spacer.gif" WIDTH=1 HEIGHT=21 ALT=""></TD>
</TR>
<TR>
<TD> <a href="mandskab.htm"><IMG SRC="images/mandskab.gif" ALT=""
WIDTH=100 HEIGHT=19 border="0"></a></TD>
<TD ROWSPAN=5> <IMG SRC="images/template_12.gif" WIDTH=100 HEIGHT=84
ALT=""></TD>
<TD width="95" ROWSPAN=5> <IMG SRC="images/template_13.gif" WIDTH=95
HEIGHT=84 ALT=""></TD>
<TD width="100" ROWSPAN=5> <IMG SRC="images/template_14.gif" WIDTH=100
HEIGHT=84 ALT=""></TD>
<TD COLSPAN=2 ROWSPAN=5> <IMG SRC="images/template_15.gif" WIDTH=90
HEIGHT=84 ALT=""></TD>
<TD> <a href="nyheder.htm"><IMG SRC="images/nyheder.gif" ALT="" WIDTH=85
HEIGHT=19 border="0"></a></TD>
<TD ROWSPAN=3> <IMG SRC="images/template_17.gif" WIDTH=93 HEIGHT=59
ALT=""></TD>
<TD> <IMG SRC="images/spacer.gif" WIDTH=1 HEIGHT=19 ALT=""></TD>
</TR>
<TR>
<TD> <a href="brandvagt.htm"><IMG SRC="images/brandvagt.gif" ALT=""
WIDTH=100 HEIGHT=20 border="0"></a></TD>
<TD> <a href="links.htm"><IMG SRC="images/links.gif" ALT="" WIDTH=85
HEIGHT=20 border="0"></a></TD>
<TD> <IMG SRC="images/spacer.gif" WIDTH=1 HEIGHT=20 ALT=""></TD>
</TR>
<TR>
<TD> <IMG SRC="images/template_20.gif" WIDTH=100 HEIGHT=20 ALT=""></TD>
<TD> <a href="kontakt.htm"><IMG SRC="images/kontakt.gif" ALT="" WIDTH=85
HEIGHT=20 border="0"></a></TD>
<TD> <IMG SRC="images/spacer.gif" WIDTH=1 HEIGHT=20 ALT=""></TD>
</TR>
<TR>
<TD ROWSPAN=5> <IMG SRC="images/template_22.gif" WIDTH=40 HEIGHT=150
ALT=""></TD>
<TD ROWSPAN=2> <IMG SRC="images/template_23.gif" WIDTH=100 HEIGHT=25
ALT=""></TD>
<TD> <a href="guestbook.htm"><IMG SRC="images/gaestebog.gif" ALT=""
WIDTH=85 HEIGHT=20 border="0"></a></TD>
<TD ROWSPAN=4> <IMG SRC="images/template_25.gif" WIDTH=93 HEIGHT=55
ALT=""></TD>
<TD ROWSPAN=5> <IMG SRC="images/template_26.gif" WIDTH=52 HEIGHT=150
ALT=""></TD>
<TD> <IMG SRC="images/spacer.gif" WIDTH=1 HEIGHT=20 ALT=""></TD>
</TR>
<TR>
<TD ROWSPAN=4> <IMG SRC="images/template_27.gif" WIDTH=85 HEIGHT=130
ALT=""></TD>
<TD> <IMG SRC="images/spacer.gif" WIDTH=1 HEIGHT=5 ALT=""></TD>
</TR>
<TR>
<TD> <a href="billedgalleri.htm"><IMG SRC="images/billedegalleri.gif"
ALT="" WIDTH=100 HEIGHT=15 border="0"></a></TD>
<TD> <a href="veterantraef.htm"><IMG SRC="images/veterantraef.gif"
ALT="" WIDTH=100 HEIGHT=15 border="0"></a></TD>
<TD> <a href="spr-nyt.htm"><IMG SRC="images/spr-nyt.gif" ALT="" WIDTH=95
HEIGHT=15 border="0"></a></TD>
<TD> <a href="stoettemedlem.htm"><IMG SRC="images/stoettemedlem.gif"
ALT="" WIDTH=100 HEIGHT=15 border="0"></a></TD>
<TD COLSPAN=2 ROWSPAN=2> <IMG SRC="images/template_32.gif" WIDTH=90
HEIGHT=30 ALT=""></TD>
<TD> <IMG SRC="images/spacer.gif" WIDTH=1 HEIGHT=15 ALT=""></TD>
</TR>
<TR>
<TD> <a href="videogalleri.htm"><IMG SRC="images/videogalleri.gif"
ALT="" WIDTH=100 HEIGHT=15 border="0"></a></TD>
<TD> <a href="info.htm"><IMG SRC="images/info_2003.gif" ALT="" WIDTH=100
HEIGHT=15 border="0"></a></TD>
<TD> <a href="medlem.htm"><IMG SRC="images/medlem.gif" ALT="" WIDTH=95
HEIGHT=15 border="0"></a></TD>
<TD> <a href="sponsorer.htm"><IMG SRC="images/sponsorer.gif" ALT=""
WIDTH=100 HEIGHT=15 border="0"></a></TD>
<TD> <IMG SRC="images/spacer.gif" WIDTH=1 HEIGHT=15 ALT=""></TD>
</TR>
<TR>
<TD> <IMG SRC="images/template_37.gif" WIDTH=100 HEIGHT=95 ALT=""></TD>
<TD> <IMG SRC="images/template_38.gif" WIDTH=100 HEIGHT=95 ALT=""></TD>
<TD COLSPAN=3> <IMG SRC="images/template_39.gif" WIDTH=255 HEIGHT=95
ALT=""></TD>
<TD width="30"> <IMG SRC="images/template_40.gif" WIDTH=30 HEIGHT=95
ALT=""></TD>
<TD> <IMG SRC="images/template_41.gif" WIDTH=93 HEIGHT=95 ALT=""></TD>
<TD> <IMG SRC="images/spacer.gif" WIDTH=1 HEIGHT=95 ALT=""></TD>
</TR>
<TR>
<TD> <IMG SRC="images/spacer.gif" WIDTH=40 HEIGHT=1 ALT=""></TD>
<TD> <IMG SRC="images/spacer.gif" WIDTH=100 HEIGHT=1 ALT=""></TD>
<TD> <IMG SRC="images/spacer.gif" WIDTH=100 HEIGHT=1 ALT=""></TD>
<TD> <IMG SRC="images/spacer.gif" WIDTH=95 HEIGHT=1 ALT=""></TD>
<TD> <IMG SRC="images/spacer.gif" WIDTH=100 HEIGHT=1 ALT=""></TD>
<TD width="60"> <IMG SRC="images/spacer.gif" WIDTH=60 HEIGHT=1
ALT=""></TD>
<TD> <IMG SRC="images/spacer.gif" WIDTH=30 HEIGHT=1 ALT=""></TD>
<TD> <IMG SRC="images/spacer.gif" WIDTH=85 HEIGHT=1 ALT=""></TD>
<TD> <IMG SRC="images/spacer.gif" WIDTH=93 HEIGHT=1 ALT=""></TD>
<TD> <IMG SRC="images/spacer.gif" WIDTH=97 HEIGHT=1 ALT=""></TD>
<TD></TD>
</TR>
<TR>
<TD colspan="10"><!-- InstanceBeginEditable name="Text" --><font
face="Verdana, Arial, Helvetica, sans-serif"><?php echo
MakeHyperlink($row_links['link']); ?></font><!--
InstanceEndEditable --></TD>
<TD></TD>
</TR>
</TABLE>
</BODY>
<!-- InstanceEnd -->
<?php
mysql_free_result($links);
?>