her er min side:
<?php require_once('Connections/cms.php'); ?>
<?php
$colname_rsSideindhold = "1";
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 sideindhold WHERE id = %s ORDER BY id DESC", $colname_rsSideindhold);
$rsSideindhold = mysql_query($query_rsSideindhold, $cms) or die(mysql_error());
$row_rsSideindhold = mysql_fetch_assoc($rsSideindhold);
$totalRows_rsSideindhold = mysql_num_rows($rsSideindhold);
$colname_rsSubmenu = "1";
if (isset($_GET['mainid'])) {
$colname_rsSubmenu = (get_magic_quotes_gpc()) ? $_GET['mainid'] : addslashes($_GET['mainid']);
}
mysql_select_db($database_cms, $cms);
$query_rsSubmenu = sprintf("SELECT * FROM sideindhold WHERE mainid = %s", $colname_rsSubmenu);
$rsSubmenu = mysql_query($query_rsSubmenu, $cms) or die(mysql_error());
$row_rsSubmenu = mysql_fetch_assoc($rsSubmenu);
$totalRows_rsSubmenu = mysql_num_rows($rsSubmenu);
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>lgb.dk</title>
<meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'>
<meta name='description' content=''>
<meta name='keywords' content=''>
<link rel='stylesheet' href='styles.css' type='text/css'>
<script type='text/javascript' src='includes/jscript.js'></script>
</head>
<body bgcolor='#DAE2E3' text='#444444'>
<script language='javascript' src='includes/revision.js' type='text/javascript'></script>
<table align='center' border='0' cellpadding='0' cellspacing='0' width='920'>
<tr><td class='pageLeft'></td><td width='100%' class='pageCenter' valign='top'>
<div id='clock'><noscript><div id='noscript'>Javascript should be enabled in order to view everything in certain sections of <strong>lgb.dk</strong>.</div></noscript><script language='javascript' src='includes/clock.js' type='text/javascript'></script></div>
<table border='0' cellpadding='0' cellspacing='0' id='header' width='100%'><tr>
<td class='logo' height='100' valign='top' width='100%'><a href='index.php' onmousedown='return false;' title='Front Page'><img alt='Front Page' border='0' src='images/logo.png' title='Front Page'></a><br><span class='slogan'>insert something funky here ;p</span></td>
<td class='rightside' nowrap='nowrap' valign='bottom'>Welcome <strong>lgb</strong></td>
</tr></table>
<div id='navBar'><div id='navBarOverlay'><ul id='menu'><li class='menu'><p title='Home'>
<a href="index.php?id=1&mainid=1">Hjem</a></p></li><li class='menu'><p title='Community'>
<a href="index.php?id=2&mainid=2">Test1</a></p></li><li class='menu'><p title='Members'>
<a href="index.php?id=3&mainid=3">Test2</a></p></li><li class='menu'><p title='Administration'>
<a href="index.php?id=4&mainid=4">Test3</a></p></li>
<li class='menu'>
<p title='Administration'><a href="index.php?id=5&mainid=5">Test4</a></p></li></ul><div id='clearmenu'></div></div></div>
<table border='0' cellpadding='0' cellspacing='0' width='100%'><tr>
<td width='170' valign='top' class='side-border-left'>
<table border='0' cellpadding='0' cellspacing='0' class='sideTitle' width='100%'><tr><td class='sideTitleOverlay' height='40' width='100%' valign='top'>Navigation</td></tr></table>
<table border='0' cellpadding='0' cellspacing='0' width='100%'><tr><td class='sideContent' width='100%'>
<?php do { ?>
<p><a href="index.php?id=<?php echo $row_rsSubmenu['id']; ?>&mainid=<?php echo $row_rsSubmenu['mainid']; ?>"><?php echo $row_rsSubmenu['navn']; ?></a></p>
<br>
</td></tr></table>
<img alt='spacer' height='10' src='images/spacer.gif' width='170'>
<?php while ($row_rsSubmenu = mysql_fetch_assoc($rsSubmenu)); ?>
<table border='0' cellpadding='0' cellspacing='0' class='sideTitle' width='100%'><tr><td class='sideTitleOverlay' height='40' width='100%' valign='top'>Besøgende</td></tr></table>
<table border='0' cellpadding='0' cellspacing='0' width='100%'><tr><td class='sideContent' width='100%'>
<img src='images/bullet.gif' alt=''> Gæster online: 0<br>
<img src='images/bullet.gif' alt=''> Brugere online: <a href='profile.php?lookup=1' class='side'>lgb</a><br>
<br><img src='images/bullet.gif' alt=''> Antal brugere: 1<br>
<img src='images/bullet.gif' alt=''> Nyeste bruger: <a href='profile.php?lookup=1' class='side'>lgb</a>
</td></tr></table>
<img alt='spacer' height='10' src='images/spacer.gif' width='170'>
</td>
<td valign='top' class='main-bg'>
<table border='0' cellpadding='0' cellspacing='0' class='centerTitle' width='100%'><tr><td class='centerTitleOverlay' height='40' width='100%' valign='top'>Velkommen</td></tr></table>
<table border='0' cellpadding='0' cellspacing='0' width='100%'><tr><td class='centerContent' width='100%'>
<center>velkommen til lgb.dk</center>
</td></tr></table>
<table cellpadding='0' cellspacing='0'><tr><td height='10'></td></tr></table>
<table cellpadding='0' cellspacing='0'><tr><td height='10'></td></tr></table>
<table border='0' cellpadding='0' cellspacing='0' class='centerTitle' width='100%'><tr><td class='centerTitleOverlay' height='40' width='100%' valign='top'><a name='news_1' id='news_1'></a><?php echo $row_rsSideindhold['overskrift']; ?></td></tr></table>
<table border='0' cellpadding='0' cellspacing='0' width='100%'><tr><td class='centerContent' width='100%'>
<p><?php echo $row_rsSideindhold['tekst1']; ?></p>
<p> <?php
if ($row_rsSideindhold['billede']) {
echo '<img src="billeder/'.$row_rsSideindhold['billede'].'">';}?>
</p>
<p><?php echo $row_rsSideindhold['tekst2']; ?></p>
<hr>
<form name='editnews1' method='post' action='administration/news.php?aid=07fd93ce3a629d42&news_id=1'>
<a href='news.php?readmore=1'>0 Kommentar(er)</a> · 4 Fremvisninger
· <a href='print.php?type=N&item_id=1'><img src='images/printer.gif' alt='Udskriv' style='vertical-align:middle;border:0px;'></a>
· <input type='hidden' name='edit' value='edit'><a href='javascript:document.editnews1.submit();'>
</form>
</td></tr></table>
<table cellpadding='0' cellspacing='0'><tr><td height='10'></td></tr></table>
</td>
<td width='170' valign='top' class='side-border-right'>
<table border='0' cellpadding='0' cellspacing='0' class='sideTitle' width='100%'><tr><td class='sideTitleOverlay' height='40' width='100%' valign='top'>lgb</td></tr></table>
<table border='0' cellpadding='0' cellspacing='0' width='100%'><tr><td class='sideContent' width='100%'>
<img src='images/bullet.gif' alt=''> <a href='edit_profile.php' class='side'>Rediger profil</a><br>
<img src='images/bullet.gif' alt=''> <a href='messages.php' class='side'>Beskeder</a><br>
<img src='images/bullet.gif' alt=''> <a href='members.php' class='side'>Brugerliste</a><br>
<img src='images/bullet.gif' alt=''> <a href='administration/index.php?aid=07fd93ce3a629d42' class='side'>Administration</a><br>
<img src='images/bullet.gif' alt=''> <a href='setuser.php?logout=yes' class='side'>Log ud</a>
</td></tr></table>
<img alt='spacer' height='10' src='images/spacer.gif' width='170'>
<table border='0' cellpadding='0' cellspacing='0' class='sideTitle' width='100%'><tr><td class='sideTitleOverlay' height='40' width='100%' valign='top'>Replikboks</td></tr></table>
<table border='0' cellpadding='0' cellspacing='0' width='100%'><tr><td class='sideContent' width='100%'>
<form name='chatform' method='post' action='news.php'>
<table align='center' cellpadding='0' cellspacing='0'>
<tr>
<td colspan='2'>
<textarea name='shout_message' rows='4' class='textbox' style='width:140px;'></textarea>
</td>
</tr>
<tr>
<td><input type='submit' name='post_shout' value='Gem' class='button'></td>
<td align='right' class='small'><a href='infusions/shoutbox_panel/shoutboxhelp.php' class='side'>Hjælp</a></td>
</tr>
</table>
</form>
<br>
<span class='shoutboxname'><img src='images/bullet.gif' alt=''> <a href='profile.php?lookup=1' class='side'>lgb</a>
</span><br>
<span class='shoutboxdate'>23/05/2007 14:20</span>
[<a href='administration/shoutbox.php?aid=07fd93ce3a629d42&action=edit&shout_id=1' class='side'>Rediger</a>]<br>
<span class='shoutbox'>velkommen til den nye side!!!</span><br>
<br>
</td></tr></table>
<img alt='spacer' height='10' src='images/spacer.gif' width='170'>
<table border='0' cellpadding='0' cellspacing='0' class='sideTitle' width='100%'><tr><td class='sideTitleOverlay' height='40' width='100%' valign='top'>Nyhedsbrev</td></tr></table>
<table border='0' cellpadding='0' cellspacing='0' width='100%'><tr><td class='sideContent' width='100%'>
<div align='center'>
For at fjerne din mailadresse fra listen på lgb.dk skal du trykke på knappen frameld.<br><br>
<form name='newsletter' method='post' action='news.php'>
<input type='submit' name='unsubscribe' value='Frameld' class='button'>
</form>
</div>
</td></tr></table>
<img alt='spacer' height='10' src='images/spacer.gif' width='170'>
</td>
</tr></table>
<table cellpadding='0' cellspacing='0' id='footer' width='100%'><tr>
<td nowrap='nowrap' valign='top' width="166">Powered by: <b>LgbCms</b></td>
<td align='center' width='60%' style='padding-left:20px;padding-right:20px;'><center>Copyright © 2007</center>24 Unikke besøg</td><td align='right' nowrap='nowrap' valign='top'> </td></tr></table>
</td><td class='pageRight'></td></tr>
</table>
</body>
</html>
<?php
mysql_free_result($rsSideindhold);
mysql_free_result($rsSubmenu);
?>
håber det hjalp. det var lidt prblemmer med kode boksen så jeg kunne ikke sætte den ind i den
Indlæg senest redigeret d. 28.05.2007 17:27 af Bruger #10050