Hejsa... igen
Jeg kan simpelthen stadigvæk ikke få den til at virker...
Dette er i min index fil:
<? include("../count.php"); ?>
<?php
//check om underside er sat hvis dette er tilfælde sættes $side til $_GET['underside'] ellers hvis $_GET['side'] er sat sættes $side til $_GET['side'] og endelig hvis ingen er sat sættes $side til forside
if (empty($_GET["underside"])) {
if (empty($_GET['side'])) {
$side="news.php";
} else {
$side=$_GET['side'];
}
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Dj...</title>
<link href="tema/red/css/styles.css" rel="stylesheet" type="text/css" />
<style type="text/css">
<!--
body {
background-color: #333333;
background-image: url();
}
.style15 {color: #000066; font-size: 11px; font-family: Verdana; }
.style18 {font-size: 10}
.style20 {color: #CC0000}
-->
</style>
</head>
<body>
<table border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<th height="225" colspan="3" background="tema/red/bg.jpg" scope="col"><img src="tema/red/s.gif" alt="DIk" width="300" height="126" /></th>
</tr>
<tr>
<td width="125" rowspan="2" valign="top" bgcolor="#CC0000" scope="col"><? include("tema/red/menu.php"); ?></td>
<td width="10" rowspan="2" valign="top" background="tema/red/m.jpg" bgcolor="#FFFFFF" scope="col"> </td>
<td valign="top" width="450" bgcolor="#FFFFFF" scope="col"><table border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td valign="top" width="450" bgcolor="#FFFFFF" scope="col"><?php
//inkluder siden
include ("tema/indhold/".$side."");
?></td>
</tr>
</table></td>
</tr>
<tr>
<td valign="bottom" bgcolor="#FFFFFF" scope="col"> <p><span class="style18"><a href="http://www.ophavsret.dk/Ophavsret/ophavsretsloven.htm" target="_blank">Copyright</a> © <a href="mailto:webmasterzg@gmail.com">Rune Rasmussen</a> - </span>Antal besøg:
<?=counter('session','../counter.txt')?>
</td>
</tr>
</table>
</body>
</html>
Og Dette er i min PRofil side:
<?php require_once('Connections/cms.php'); ?>
<?php session_start();
$colname_rsSideindhold = "6";
if (isset($_GET['id'])) {
$colname_rsSideindhold = (get_magic_quotes_gpc()) ? $_GET['id'] : addslashes($_GET['id']);
}
mysql_select_db($database_cms, $cms);
$query_rsSideindhold = sprintf("SELECT * FROM sideindhold2 WHERE id = %s", $colname_rsSideindhold);
$rsSideindhold = mysql_query($query_rsSideindhold, $cms) or die(mysql_error());
$row_rsSideindhold = mysql_fetch_assoc($rsSideindhold);
$totalRows_rsSideindhold = mysql_num_rows($rsSideindhold);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Dj...</title>
<link href="css/styles.css" rel="stylesheet" type="text/css" />
<style type="text/css">
<!--
body {
background-color: #333333;
}
-->
</style></head>
<body>
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td valign="top" width="450" bgcolor="#FFFFFF" scope="col"><table border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td valign="top" width="450" bgcolor="#FFFFFF" scope="col"><table border="0" align="left" cellpadding="0" cellspacing="0">
<tr>
<td width="450" bgcolor="#FFFFFF" scope="col"><br />
<table border="0" align="left" cellpadding="0" cellspacing="0">
<tr>
<td valign="top" bgcolor="#FFFFFF" scope="col"><span class="style19">---</span></td>
<td valign="top" width="100" height="100" bgcolor="#FFFFFF" scope="col"><p><?php echo '<img height="150" width="150"
src="../billeder/'.$row_rsSideindhold['billede'].'">'; ?></p></td>
<td valign="top" width="350" bgcolor="#FFFFFF" scope="col"><p>Dj Navn: <span class="style15"><?php echo $row_rsSideindhold['djnavn']; ?></span> Alder: <span class="style15"><?php echo $row_rsSideindhold['alder']; ?></span></p>
<p>Fulde Navn: <span class="style15"><?php echo $row_rsSideindhold['fuldenavn']; ?></span></p>
<p>Profiltext: <span class="style15"><?php echo $row_rsSideindhold['text']; ?></span></p></td>
</tr>
</table> </td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
<tr>
<td valign="bottom" bgcolor="#FFFFFF" scope="col"> </td>
</tr>
</table>
</body>
</html>
Pleas hjælp