Hello,
I am using the complete membership tutorial on my site.
And am getting two specific issues.
I have also already looked over the forum for these issues.
The first issue i get is:
Warning: Cannot modify header information - headers already sent by (output started at /home/******/beta/user/includes/config.php:9) in /home/******/beta/user/login.php on line 27
My config.php file:
PHP Code:
<?php
// config.php for system
$host = "******"; // default
$user = "******"; // mysql username
$pass = "******"; // mysql password
$db = "******"; //mysql database
@mysql_connect($host,$user,$pass) or die("Could not connect to MySQL<br />".mysql_error());
@mysql_select_db($db) or die("Could not connect to MySQL database $db");
?>
My second issue is this error:
Warning: mysql_close(): supplied argument is not a valid MySQL-Link resource in /home/******/beta/user/login.php on line 103
Line 103 is as follows:
PHP Code:
<? } mysql_close($l); ?>
Login.php does already start out as follows:
<?php
session_start();
Any suggestions to resolve this would be appreciated alot, thanks.