Page 1 of 2 12 LastLast
Results 1 to 10 of 19
  1. #1
    Join Date
    Oct 2006
    Location
    BUXTON
    Posts
    2,191
    Tokens
    0

    Latest Awards:

    Default Simple News HELP

    On all the files like the one were u show news.. i change the font and it comes up with a error :S whys???

  2. #2
    Join Date
    Jul 2007
    Location
    Swindon
    Posts
    990
    Tokens
    125

    Default

    is it in an echo? and wat error?

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

    Latest Awards:

    Default

    this is the error when i skin the admin zone.

    PHP Code:
    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:2in /home/jamie/public_html/backend/files/connect.php on line 2 

  4. #4
    Join Date
    Jul 2007
    Location
    Swindon
    Posts
    990
    Tokens
    125

    Default

    post the coding...

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

    Latest Awards:

    Default

    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 include 'connect.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>

  6. #6
    Join Date
    Jul 2007
    Location
    Swindon
    Posts
    990
    Tokens
    125

    Default

    i dont see any added font?
    The error means the session in index.php was already started in connect.php which is included into index.php

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

    Latest Awards:

    Default

    How do i fix?

  8. #8
    Join Date
    Jul 2007
    Location
    Swindon
    Posts
    990
    Tokens
    125

    Default

    dont set the session on the config file? :S

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

    Latest Awards:

    Default

    there aint a config.php :S


    thats connect php :S

    PHP Code:
    <?php
    session_start
    ();

               
    $dbname "jamie_cms"
               
    $dbuser "jamie_cms"
               
    $dbpass "cms"

      
    mysql_connect ("localhost"$dbuser$dbpass) or die ("Couldnt connect");
      
    mysql_select_db ($dbname) or die ("Invalid Database name");
    ?>
    Last edited by Jamieb; 03-10-2007 at 05:35 PM.

  10. #10
    Join Date
    Jul 2007
    Location
    Swindon
    Posts
    990
    Tokens
    125

    Default

    connect.php even

Page 1 of 2 12 LastLast

Posting Permissions

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