Log in

View Full Version : HELP! +rep



mapowell1234
18-04-2007, 09:58 AM
<html>
<head>
<title>Home</title>
</head><link href="styles.css" rel="stylesheet" type="text/css">
<body bgcolor="#ffffff">
HabboForest News<br><br>
</body>
</html>
<?
ob_start(); # Allows Cookies
include("config.php"); # Includes Your Configuration File
$new = mysql_query("SELECT * FROM news ORDER BY id DESC LIMIT 20"); # Queries The News
while($news=mysql_fetch_array($new))
# Displays Them All In Order
echo("<tr>
<td rowspan="4" valign="top" style="padding-top: 5px; padding-left: 8px; padding-right: 5px; text-align: left;">
<table width='350' border='0'>
<tr>
<td><span id='whitebold'>[$news[date]]</span><span id='orangebold'><strong>&nbsp;&nbsp;&nbsp;$news[title]</strong></span></td>
</tr>
<tr>
<td><span id='white'><br>$news[content]</span></td>
</tr>
<tr>
<td><span id='white'>
<i>- Posted By <strong>$news[author]</strong></span> </td></i>
</tr>
</table><br/><br/>
</td>");
?>

Whats Wrong Nothing Shows Up??
Please Could Someone Sort It

Mashi
18-04-2007, 11:50 AM
i think you may not of started php definition



=]



not sure but if not ill repost when ive properly tested


:eusa_wall :eusa_wall :eusa_wall :eusa_wall

WiseBen
18-04-2007, 02:04 PM
I think it might be because you've done this:
echo("<tr>
<td rowspan="4" valign="top" style="padding-top: 5px; padding-left: 8px; padding-right: 5px; text-align: left;">
<table width='350' border='0'>
<tr>
<td><span id='whitebold'>[$news[date]]</span><span id='orangebold'><strong>&nbsp;&nbsp;&nbsp;$news[title]</strong></span></td>
</tr>
<tr>
<td><span id='white'><br>$news[content]</span></td>
</tr>
<tr>
<td><span id='white'>
<i>- Posted By <strong>$news[author]</strong></span> </td></i>
</tr>
</table><br/><br/>
</td>");

you've used "quotation marks" to open it, and you've used them on the line <td rowspan="....etc
You need to use a DIFFERENT type of quotation mark like ' instead, because it think's you're closing it probably although i would have thought an error would have come up...


<html>
<head>
<title>Home</title>
</head><link href="styles.css" rel="stylesheet" type="text/css">
<body bgcolor="#ffffff">
HabboForest News<br><br>
</body>
</html>
<?
ob_start(); # Allows Cookies
include("config.php"); # Includes Your Configuration File
$new = mysql_query("SELECT * FROM news ORDER BY id DESC LIMIT 20"); # Queries The News
while($news=mysql_fetch_array($new))
# Displays Them All In Order
echo("<tr>
<td rowspan='4' valign='top' style='padding-top: 5px; padding-left: 8px; padding-right: 5px; text-align: left;'>
<table width='350' border='0'>
<tr>
<td><span id='whitebold'>[$news[date]]</span><span id='orangebold'><strong>&nbsp;&nbsp;&nbsp;$news[title]</strong></span></td>
</tr>
<tr>
<td><span id='white'><br>$news[content]</span></td>
</tr>
<tr>
<td><span id='white'>
<i>- Posted By <strong>$news[author]</strong></span> </td></i>
</tr>
</table><br/><br/>
</td>");
?>

try that

Want to hide these adverts? Register an account for free!