Jump to content

Include error


Vivid Lust

Recommended Posts

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']; }

?>

Link to comment
https://forums.phpfreaks.com/topic/91694-include-error/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.