"Lars k." <lkj@person.dk> skrev i en meddelelse
news:bvtfk4$svi$1@sunsite.dk...
> > <td><a href="$link"><div align="center"><img
> > src="images/120x60_con.gif" border="0\"></div></a></td> = denne er tom
> det
> > burde være "
http://www.jubii.dk"
> >
>
> Det tyder på at du ikke har fået din $link rigtig hentet fra DB'en. Jeg
ved
> ikke lige hvor vi skal starte, men har du adgang til din DB med fx
> phpmyadmin så kan du gå ind at se hvad der reelt står i den DB. Hvis det
som
> står der er OK må vi gå videre, men hvis der ikke står noget der så er det
i
> din indtastning i DB den gal.
>
> Må vi se din kode? du kan evt. smide den på din hjemmeside
>
> Lars
>
her har du hele koden fra common.php
mysql_select_db($database_qxlsex, $qxlsex);
$query_qxl_sex = sprintf("SELECT * FROM qxl_sex WHERE id = %s",
$colname_qxl_sex);
$qxl_sex = mysql_query($query_qxl_sex, $qxlsex) or die(mysql_error());
$row_qxl_sex = mysql_fetch_assoc($qxl_sex);
$totalRows_qxl_sex = mysql_num_rows($qxl_sex);
//IP address count
$dial = "SELECT dial FROM qxl_sex";
$dial = mysql_query($dial);
function make_header () {
if(!isset($_GET['id']) || $_GET['id'] == '') {
$id = 100; //Set default id
}
else {
$id = $_GET['id'];
}
echo"
<BODY BGCOLOR=#FFFFFF background=\"images/bg.gif\" LEFTMARGIN=\"0\"
TOPMARGIN=\"0\" MARGINWIDTH=\"0\" MARGINHEIGHT=\"0\"
onstop=\"javascript('$exit','exit','toolbar=\"yes\",location=\"yes\",status=
\"yes\",menubar=\"yes\",scrollbars=\"yes\",resizable=\"yes\"')\">
<TABLE WIDTH=\"800\" BORDER=\"0\" align=\"center\" CELLPADDING=\"0\"
CELLSPACING=\"0\">
<TR>
<TD COLSPAN=\"4\"> <IMG SRC=\"../images/qxl2_top_01.gif\" WIDTH=\"800\"
HEIGHT=\"6\" ALT=\"Qxlsex.com\"></TD>
</TR>
<TR>
<TD ROWSPAN=\"3\"> <IMG SRC=\"../images/qxl2_top_02.gif\" WIDTH=\"203\"
HEIGHT=\"100\" ALT=\"Qxlsex.com\"></TD>
<TD ROWSPAN=\"2\"> <IMG SRC=\"../images/qxl2_top_03.gif\" WIDTH=\"63\"
HEIGHT=\"80\" ALT=\"Qxlsex.com\"></TD>
<TD><iframe marginwidth=\"0\" marginheight=\"0\" width=\"468\"
height=\"60\" scrolling=\"no\" frameborder=\"0\"
src=\"../banner/ban_rota.php\">
</iframe></TD>
<TD ROWSPAN=\"2\"> <IMG SRC=\"../images/qxl2_top_05.gif\" WIDTH=\"66\"
HEIGHT=\"80\" ALT=\"Qxlsex.com\"></TD>
</TR>
<TR>
<TD> <IMG SRC=\"../images/qxl2_top_06.gif\" WIDTH=\"468\" HEIGHT=\"20\"
ALT=\"Qxlsex.com\"></TD>
</TR>
<TR>
<TD COLSPAN=\"3\" background=\"../images/qxl2_top_07.gif\"><table
width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">
<tr>
<td> </td>
<td width=\"97\" height=\"20\"
background=\"../images/qxl2_knap_08.gif\"><div align=\"center\"><a
href=\"
http://www.funtest.co.uk?id=$dial\" class=\"menu\">Text
#1</a></div></td>
<td> </td>
<td width=\"97\" height=\"20\"
background=\"../images/qxl2_knap_08.gif\"><div align=\"center\"><a
href=\"#?id=$id\" class=\"menu\">Text
#1</a></div></td>
<td> </td>
<td width=\"97\" height=\"20\"
background=\"../images/qxl2_knap_08.gif\"><div align=\"center\"><a
href=\"#?id=$id\" class=\"menu\">Text
#1</a></div></td>
<td> </td>
<td width=\"97\" height=\"20\"
background=\"../images/qxl2_knap_08.gif\"><div align=\"center\"><a
href=\"#?id=$id\" class=\"menu\">Text
#1</a></div></td>
<td> </td>
</tr>
</table>
</TD>
</TR>
</TABLE>
<table align=\"center\" width=\"800\" border=\"0\" cellspacing=\"0\"
cellpadding=\"0\">
<tr>
<td height=\"136\" valign=\"top\"><table width=\"100%\" height=\"273\"
border=\"0\" cellpadding=\"0\" cellspacing=\"0\">
<tr>
<td width=\"16%\" valign=\"top\"><table width=\"100%\"
border=\"0\" cellspacing=\"0\" cellpadding=\"0\">
<tr>
<td><img src=\"images/spacer.gif\" width=\"8\"
height=\"25\"></td>
</tr>
</table>
<table width=\"129\" border=\"0\" cellspacing=\"0\"
cellpadding=\"0\">
<tr>
<td width=\"129\" height=\"25\"
background=\"../images/qxl2_menu_12.gif\"><img src=\"images/spacer.gif\"
width=\"20\" height=\"1\"><font color=\"#FFFFFF\" size=\"4\" face=\"Verdana,
Arial, Helvetica, sans-serif\"><strong><em>Index</em></strong></font></td>
</tr>
<tr>
<td><a href=\"index.php?id=$id\" class=\"menu\"><img
src=\"images/spacer.gif\" width=\"15\" height=\"1\"
border=\"0\">Home</a></td>
</tr>
<tr>
<td><a href=\"hardcore.php?id=$id\" class=\"menu\"><img
src=\"images/spacer.gif\" width=\"15\" height=\"1\" border=\"0\">Hardcore
Sex</a></td>
</tr>
<tr>
<td><a href=\"anal.php?id=$id\" class=\"menu\"><img
src=\"images/spacer.gif\" width=\"15\" height=\"1\" border=\"0\">Anal
Penatration</a></td>
</tr>
<tr>
<td><a href=\"blow.php?id=$id\" class=\"menu\"><img
src=\"images/spacer.gif\" width=\"15\" height=\"1\"
border=\"0\">Blowjobs</a></td>
</tr>
<tr>
<td><a href=\"sportsgirls.php?id=$id\" class=\"menu\"><img
src=\"images/spacer.gif\" width=\"15\" height=\"1\"
border=\"0\">Sportsgirls</a></td>
</tr>
</table>
<img src=\"images/spacer.gif\" width=\"15\" height=\"1\" border=\"0\">
<table width=\"129\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">
<tr>
<td width=\"129\" height=\"25\"
background=\"../images/qxl2_menu_12.gif\"><img src=\"images/spacer.gif\"
width=\"20\" height=\"1\"><font color=\"#FFFFFF\" size=\"4\" face=\"Verdana,
Arial, Helvetica, sans-serif\"><strong><em>Ads</em></strong></font></td>
</tr>
<tr>
<td><a href=\"$dial\"><div align=\"center\"><img
src=\"images/120x60_con.gif\" border=\"0\"></div></a></td>
</tr>
<tr>
<td><a href=\"#?id=$id\" class=\"small\"><div
align=\"center\">Win ? 250.000</div></a></td>
</tr>
</table>
<img src=\"images/spacer.gif\" width=\"15\" height=\"1\"
border=\"0\">
<table>
<tr>
<td>
<table width=\"129\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">
<tr>
<td width=\"129\" height=\"25\"
background=\"../images/qxl2_menu_12.gif\"><img src=\"images/spacer.gif\"
width=\"20\" height=\"1\"><font color=\"#FFFFFF\" size=\"4\" face=\"Verdana,
Arial, Helvetica, sans-serif\"><strong><em>Funny</em></strong></font></td>
</tr>
<tr>
<td><a href=\"film.php?id=$id\" class=\"menu\"><img
src=\"images/spacer.gif\" width=\"15\" height=\"1\" border=\"0\">Film
Quiz</a></td>
</tr>
<tr>
<td><a href=\"football.php?id=$id\" class=\"menu\"><img
src=\"images/spacer.gif\" width=\"15\" height=\"1\" border=\"0\">Football
Ouiz</a></td>
</tr>
<tr>
<td><a href=\"formula.php?id=$id\" class=\"menu\"><img
src=\"images/spacer.gif\" width=\"15\" height=\"1\" border=\"0\">Formula
Quiz</a></td>
</tr>
<tr>
<td><a href=\"fun.php?id=$id\" class=\"menu\"><img
src=\"images/spacer.gif\" width=\"15\" height=\"1\" border=\"0\">Fun
Quiz</a></td>
</tr>
<tr>
<td><a href=\"music.php?id=$id\" class=\"menu\"><img
src=\"images/spacer.gif\" width=\"15\" height=\"1\" border=\"0\">Music
Quiz</a></td>
</tr>
<tr>
<td><a href=\"golf.php?id=$id\" class=\"menu\"><img
src=\"images/spacer.gif\" width=\"15\" height=\"1\" border=\"0\">Golf
Quiz</a></td>
</tr>
<tr>
<td><a href=\"rugby.php?id=$id\" class=\"menu\"><img
src=\"images/spacer.gif\" width=\"15\" height=\"1\" border=\"0\">Rugby
Quiz</a></td>
</tr>
<tr>
<td><a href=\"sports.php?id=$id\" class=\"menu\"><img
src=\"images/spacer.gif\" width=\"15\" height=\"1\" border=\"0\">Sports
Quiz</a></td>
</tr>
</table>
</td>
</tr>
</table>
<img src=\"images/spacer.gif\" width=\"15\" height=\"1\" border=\"0\">
<table width=\"129\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">
<tr>
<td width=\"129\" height=\"25\"
background=\"../images/qxl2_menu_12.gif\"><img src=\"images/spacer.gif\"
width=\"20\" height=\"1\"><font color=\"#FFFFFF\" size=\"4\" face=\"Verdana,
Arial, Helvetica, sans-serif\"><strong><em>Tests</em></strong></font></td>
</tr>
<tr>
<td><a href=\"mind.php?id=$id\" class=\"menu\"><img
src=\"images/spacer.gif\" width=\"15\" height=\"1\" border=\"0\">IQ
Test</a></td>
</tr>
<tr>
<td><a href=\"love.php?id=$id\" class=\"menu\"><img
src=\"images/spacer.gif\" width=\"15\" height=\"1\" border=\"0\">Love
Test</a></td>
</tr>
<tr>
<td><a href=\"career.php?id=$id\" class=\"menu\"><img
src=\"images/spacer.gif\" width=\"15\" height=\"1\" border=\"0\">Career
Test</a></td>
</tr>
<tr>
<td><a href=\"music2.php?id=$id\" class=\"menu\"><img
src=\"images/spacer.gif\" width=\"15\" height=\"1\" border=\"0\">Music
Test</a></td>
</tr>
<tr>
<td><a href=\"games.php?id=$id\" class=\"menu\"><img
src=\"images/spacer.gif\" width=\"15\" height=\"1\" border=\"0\">Sports
Test</a></td>
</tr>
<tr>
<td><a href=\"health.php?id=$id\" class=\"menu\"><img
src=\"images/spacer.gif\" width=\"15\" height=\"1\" border=\"0\">Health
Test</a></td>
</tr>
</table>
<table width=\"100%\" border=\"0\" cellspacing=\"0\"
cellpadding=\"0\">
<tr>
<td><img src=\"images/spacer.gif\" width=\"5\"
height=\"25\">
</td>
</tr>
</table>
<td width=\"84%\" valign=\"top\"><table width=\"100%\" border=\"0\"
cellspacing=\"0\" cellpadding=\"0\">
</td>
<tr>
<td><img src=\"images/spacer.gif\" width=\"16\"
height=\"25\">\n";
return;
}
// Overskrift here //
function top() {
if(!isset($_GET['id']) || $_GET['id'] == '') {
$id = 100; //Set default id
}
else {
$id = $_GET['id'];
}
echo "
</td>
</tr>
<tr>
<td valign=\"top\">\n";
return;
}
// sites here //
function make_footer() {
echo "
</td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table>
<table><tr><td>$user_agent,$IP_address,$count</td></tr></table>\n";
return;
}
?>