Results 1 to 3 of 3
  1. #1
    Join Date
    Dec 2010
    Posts
    4
    Tokens
    0

    Default Need help with my game.. [reward]

    I'll pay you £10 if you help me with this,

    my game is at -- phpMyAdmin SQL Dump
    http://udbeta.x10.mx/index.php/index.php


    Its just a beta version, not proper but when i try to login i get
    PHP Code:
    WarningCannot modify header information headers already sent by (output started at /home/udbeta/public_html/index.php/includes/db_connect.php:1in /home/udbeta/public_html/index.php/index.php on line 7 
    What do i do?
    Paypal payment

  2. #2
    Join Date
    Nov 2006
    Location
    Narrich
    Posts
    5,687
    Tokens
    0
    Habbo
    Jamesy...

    Latest Awards:

    Default

    it looks like db_connect.php is erroring and outputting something to the browser before your header function call. Could you post your code?
    Ex-janitor. Might pop in from time to time, otherwise you can grab all my information from http://jamesy.me.uk/

  3. #3

    Wink

    Hey There,
    from my experiance with PHP,

    That Error Gennerally means in your file "db_connect.php" thier is a string that should look similar to this:

    Code:
    session_start();
    Sessions can get annoying but in your index.php file you probably have your <html> codes above your <php> codes?
    for example:

    (YOUR CODE)


    (HOW IT SHOULD LOOK)


    So basicly the error is trying to say that "headers have allready started?" so now with "db_connect" above the HTML headers it will overide HTML headers with the PHP sessions in the DB_CONNECT.php file?

    This Should fix the error code

    Thankyou,
    Christopher Holland
    Last edited by ChristopherH; 03-01-2011 at 10:52 AM. Reason: Update.
    Thank-you,
    Christopher Holland

Posting Permissions

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