The Members Area i have created was working fine, and then suddenly i get this warning/error when i test the new member sign up script
Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/httpd/vhosts/impa.net/httpdocs/new_member.php:6) in /home/httpd/vhosts/impa.net/httpdocs/new_member.php on line 223
now the php code that this is refering to is as follows
This was working fine before! i ahvent changed anything but ahve no idea why this error appears, it still adds the new members details to the database :S
Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/httpd/vhosts/impa.net/httpdocs/new_member.php:6) in /home/httpd/vhosts/impa.net/httpdocs/new_member.php on line 223
now the php code that this is refering to is as follows
Code:
Line in code.
\/
218. <?php
219. session_start();
220.
221. if (@$_SESSION['auth'] != "yes")
222. {
223. header("Location: login.php");
224. exit();
225. }
226. include("doc.inc");
227. $connection = mysql_connect($host,$user,$password)
228. or die ("Couldn't connect to the server.");
229. $db = mysql_select_db($database, $connection)
230. or die ("Couldn't connect to database.");
231. $sql = "SELECT contact,company FROM Member
232. WHERE loginName='{$_SESSION['logname']}'";
233. $result = mysql_query($sql)
234. or die("Couldn't execute query 1.");
235. $row = mysql_fetch_array($result,MYSQL_ASSOC);
236. extract($row);
237. echo "<html>
238 <head><title>New Member Welcome</title></head>
239. <body>
240. <h2 align='center' style='margin-top: .9in'>
241. Welcome $contact at $company</h2>\n";
242. ?>
This was working fine before! i ahvent changed anything but ahve no idea why this error appears, it still adds the new members details to the database :S