View Full Version : Need help with my game.. [reward]
UDTest
27-12-2010, 09:49 AM
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
Warning: Cannot modify header information - headers already sent by (output started at /home/udbeta/public_html/index.php/includes/db_connect.php:1) in /home/udbeta/public_html/index.php/index.php on line 7
What do i do?
Paypal payment
Jamesy
27-12-2010, 01:52 PM
it looks like db_connect.php is erroring and outputting something to the browser before your header function call. Could you post your code?
ChristopherH
03-01-2011, 10:47 AM
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:
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)
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>index.php</title>
</head>
<body>
<?php
include("db_connect.php");
echo 'Welcome to my world';
?>
</body>
</html>
(HOW IT SHOULD LOOK)
<?php
include("db_connect.php");
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>index.php</title>
</head>
<body>
<?php
echo 'Welcome to my world';
?>
</body>
</html>
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
Want to hide these adverts? Register an account for free!
Powered by vBulletin® Version 4.2.5 Copyright © 2025 vBulletin Solutions Inc. All rights reserved.