11-06-2007, 02:35 AM
|
#9 (permalink)
|
|
The Wanderer
Join Date: Nov 2007
Posts: 22
Thanks: 0
|
Well, I tryed yours and it got rid of the error, but it did not echo the information, it is just blank. This is the whole page of code, with your code in it Nor.
<?php
$currentPage = basename($_SERVER['SCRIPT_NAME']);
require_once('dbconfig.php');
$recordset = mysql_query("SELECT `id`, `date`, `title`, `description` FROM `news` WHERE `id` = " . intval($_GET['id']) . " LIMIT 1;") or die(mysql_error());
$row = mysql_fetch_array($recordset);
?>
<span class="newscontainer">
<div class="newsinside">
<!--News section -->
<div class="newsep">
<span class="newsdate"><?php echo($row['date']);?></span><br />
<span class="newstitle"><?php echo($row['title']);?></span><br />
<span class="newsdes">
<?php echo($row['description']);?></span>
</div>
<!--End section-->
<!--News section -->
<div class="newsep">
<span class="newsdate"><?php echo($row['date']);?></span><br />
<span class="newstitle"><?php echo($row['title']);?></span><br />
<span class="newsdes">
<?php echo($row['description']);?></span>
</div>
<!--End section-->
</div>
</span>
|
|
|
|