Vivid Lust Posted February 18, 2008 Share Posted February 18, 2008 This is it: Warning: Cannot modify header information - headers already sent by (output started at /home/jacsta/public_html/site/profile.php:20) in /home/jacsta/public_html/site/profile.php on line 97 the included file contents: <?php // connect to mysql $link = mysql_connect('localhost', '************', '************************************'); // select database mysql_select_db('jacsta_db1',$link); // cookie details here $counted = $HTTP_COOKIE_VARS["counter"]; // if this is first visitor then if($counted==""){ // we create cookie for visitor setcookie("counter".$_GET['member'],"counted".$_GET['member'],time()+60*60*60); // add counter to database mysql_query("UPDATE members SET views=views+1 WHERE member='{$_GET['member']}'"); } $query=mysql_query("SELECT * FROM members WHERE member='{$_GET['member']}'"); while($row=mysql_fetch_assoc($query)) { $stats=$row['counter']; } ?> Quote Link to comment Share on other sites More sharing options...
kenrbnsn Posted February 18, 2008 Share Posted February 18, 2008 Please read the sticky HEADER ERRORS - READ HERE BEFORE POSTING THEM and then come back if you're still stuck. Ken Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.