Discover Habbo's history
Treat yourself with a Secret Santa gift.... of a random Wiki page for you to start exploring Habbo's history!
Happy holidays!
Celebrate with us at Habbox on the hotel, on our Forum and right here!
Join Habbox!
One of us! One of us! Click here to see the roles you could take as part of the Habbox community!


Page 2 of 2 FirstFirst 12
Results 11 to 19 of 19
  1. #11
    Join Date
    May 2005
    Location
    San Francisco, CA
    Posts
    7,160
    Tokens
    2,331

    Latest Awards:

    Default

    Uhm, Caleb's panel named simpleNEWS isn't out yet and you were posting in HIS thread about this error?

    Can you post the link to the panel which you are using? :confused:

  2. #12
    Join Date
    Jul 2005
    Location
    North Wales
    Posts
    4,233
    Tokens
    1,544

    Latest Awards:

    Default

    Quote Originally Posted by Invent View Post
    Uhm, Caleb's panel named simpleNEWS isn't out yet and you were posting in HIS thread about this error?

    Can you post the link to the panel which you are using? :confused:
    Hes using mine, I think I know what the problem is let me check, I'll edit this post in a second.

    EDIT:

    PHP Code:
        <?php include 'connect.php'?>

    <div id="top">
        
            &nbsp; <img border="0" src="top_logo.jpg" width="288" height="131"></div>

        
        <div id="fade">
        
            <!-- Empty -->
        
        </div>  
      <center>
        Welcome to the Backend!<br />
        <br />
        <?php
    if ($_SESSION['username'] && $_SESSION['level'] == ) {
      echo (
    "
    <strong>Navigation</strong><br />
    <br />
    <a href=\"add_news.php\">Add An Article</a> <br />
    <a href=\"logout.php\">Logout</a> <br />"
    );
    }
    elseif (
    $_SESSION['username'] && $_SESSION['level'] == ) {
      echo (
    "
    <strong>Navigation</strong><br />
    <br />
    <a href=\"add_news.php\">Add An Article</a> <br /> 
    <a href=\"delete_news.php\">Delete An Article</a> <br />
    <a href=\"register_account.php\">Create A New User</a> <br />
    <a href=\"/upload/backend.php\">Acsept Images</a> <br /> 
    <a href=\"logout.php\">Logout</a> <br />"
    );
    }
    else {
      echo (
    "Please login");
    }
    php?>

      </center>

    </div>

    <p align="center">&nbsp;</p>

    </body></html>
    Try that.
    Last edited by redtom; 03-10-2007 at 05:51 PM.

  3. #13
    Join Date
    Oct 2006
    Location
    BUXTON
    Posts
    2,191
    Tokens
    0

    Latest Awards:

    Default

    Yh tom its your i think.. can u help plz

  4. #14
    Join Date
    Jul 2005
    Location
    North Wales
    Posts
    4,233
    Tokens
    1,544

    Latest Awards:

    Default

    Quote Originally Posted by Jamieb View Post
    Yh tom its your i think.. can u help plz
    Check my post I just edited it.

  5. #15
    Join Date
    Oct 2006
    Location
    BUXTON
    Posts
    2,191
    Tokens
    0

    Latest Awards:

    Default

    Its moved and it says this at the top of ma page now


    Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/jamie/public_html/backend/files/index.php:2) in /home/jamie/public_html/backend/files/connect.php on line 2

  6. #16
    Join Date
    Jul 2005
    Location
    North Wales
    Posts
    4,233
    Tokens
    1,544

    Latest Awards:

    Default

    Quote Originally Posted by Jamieb View Post
    Its moved and it says this at the top of ma page now


    Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/jamie/public_html/backend/files/index.php:2) in /home/jamie/public_html/backend/files/connect.php on line 2
    Okay...

    So place this at the very top of the page, above everything:

    PHP Code:
        <?php include 'connect.php'?>
    And then heres the code you had before but with out the include to the connect, place it where you want:

    PHP Code:
    <div id="top"> 
         
            &nbsp; <img border="0" src="top_logo.jpg" width="288" height="131"></div> 

         
        <div id="fade"> 
         
            <!-- Empty --> 
         
        </div>   
      <center> 
        Welcome to the Backend!<br /> 
        <br /> 
        <?php 
    if ($_SESSION['username'] && $_SESSION['level'] == ) { 
      echo (

    <strong>Navigation</strong><br /> 
    <br /> 
    <a href=\"add_news.php\">Add An Article</a> <br /> 
    <a href=\"logout.php\">Logout</a> <br />"
    ); 

    elseif (
    $_SESSION['username'] && $_SESSION['level'] == ) { 
      echo (

    <strong>Navigation</strong><br /> 
    <br /> 
    <a href=\"add_news.php\">Add An Article</a> <br />  
    <a href=\"delete_news.php\">Delete An Article</a> <br /> 
    <a href=\"register_account.php\">Create A New User</a> <br /> 
    <a href=\"/upload/backend.php\">Acsept Images</a> <br />  
    <a href=\"logout.php\">Logout</a> <br />"
    ); 

    else { 
      echo (
    "Please login"); 

    php?> 

      </center> 

    </div> 

    <p align="center">&nbsp;</p> 

    </body></html>

  7. #17
    Join Date
    Oct 2006
    Location
    BUXTON
    Posts
    2,191
    Tokens
    0

    Latest Awards:

    Default

    Ty but when i edit the font it says this
    Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/jamie/public_html/backend/index.php:1) in /home/jamie/public_html/backend/files/connect.php on line 2
    News

    Test - id:3
    Enter your article here...kk
    Poested By: admin

    whats happend.. and how do i remver the ID aswell...

    PHP Code:
    <style type="text/css">
    <!--
    body,td,th {
        font-family: Verdana, Arial, Helvetica, sans-serif;
        font-size: 9px;
    }
    -->
    </style>
    <?php include 'files/connect.php'
    echo (
    "<strong>News</strong><br /><br />");
      
    $result 

    mysql_query("select * from news order by id desc");  
    while(
    $row mysql_fetch_array($result))

    $title=$row["title"];
    $user=$row["by"]; 
    $body=$row["body"]; 
    $id=$row["id"];
    echo 

    "<strong>$title</strong> - id:<italic>$id</italic><br />
    $body<br />
    Poested By: 
    $user<br />
    <br />"
    ;
    }
    php?>
    thats the code..

  8. #18
    Join Date
    Jul 2005
    Location
    North Wales
    Posts
    4,233
    Tokens
    1,544

    Latest Awards:

    Default

    You still haven't moved the include.

    PHP Code:
    <?php include 'files/connect.php'?>
    <style type="text/css">
    <!--
    body,td,th {
        font-family: Verdana, Arial, Helvetica, sans-serif;
        font-size: 9px;
    }
    -->
    </style>
    <?php
    echo ("<strong>News</strong><br /><br />");
      
    $result 

    mysql_query("select * from news order by id desc");  
    while(
    $row mysql_fetch_array($result))

    $title=$row["title"];
    $user=$row["by"]; 
    $body=$row["body"]; 
    $id=$row["id"];
    echo 

    "<strong>$title</strong> <br />
    $body<br />
    Poested By: 
    $user<br />
    <br />"
    ;
    }
    php?>
    Use that ^
    Last edited by redtom; 03-10-2007 at 06:46 PM.

  9. #19
    Join Date
    Oct 2006
    Location
    BUXTON
    Posts
    2,191
    Tokens
    0

    Latest Awards:

    Default

    Ty +rep

Page 2 of 2 FirstFirst 12

Posting Permissions

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