Results 1 to 3 of 3

Thread: HELP! +rep

  1. #1

    Default HELP! +rep

    <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

  2. #2
    Join Date
    Jan 2007
    Posts
    825
    Tokens
    0

    Default =]

    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

  3. #3
    Join Date
    Jul 2004
    Location
    West Midlands
    Posts
    396
    Tokens
    0

    Default

    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
    DID YOU KNOW: That over 34.26993% of statistical percentages are made up?


    You might have known me by my other name of BennyBoy07952 - I had my name changed

    Rep History:
    Latest 3 +Reps
    Devil.Wont.Cry
    Caution
    Test:Tube:Baby

    Thanks - Leave your names!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •