Hi, get this on page when i try to login to a flyin ads script i'm installing.
Warning: Cannot modify header information - headers already sent by (output started at /home2/oneworld/public_html/fly/db_mysql.inc:390) in /home2/oneworld/public_html/fly/do.sign.in.php on line 22
Not sure if this means errors in db_mysql.inc or do.sign.in.php.
I'm pretty new to this ,can anyone help ?
heres the do.sign.in.php code :
<?php
if (!eregi("index.php", $PHP_SELF))
{
die ("You can't access this file directly...");
}
$query="select id from members where email='$email' and password='$password' limit 0,1";
$q->query($query);
if ($q->nf()!=0)
{
$q->next_record();
$sess_id=$q->f("id");
session_register("sess_id");
$query="select ip from members where ip='$REMOTE_ADDR' and id='$sess_id'";
$q->query($query);
if ($q->nf()==0)
{
$query="update members set ip='$REMOTE_ADDR' where id='$sess_id'";
$q->query($query);
}
if (!isset($id))
{
header("Location: index.php?action=member_area");
}
else
{
header("Location: track.php?id=$id");
break;
}
}
else
{
$content=error_page("Your login does not exist.");
}
?>
If anyone knows what i need to change please let me know.
If you need more info let me know.
cheers
derekin this file
db_mysql.inc
I am guessing line 390 is the very botom on this ?>
make sure there is no spaces after that. make sure it is the every last line too.
Warning: Cannot modify header information - headers already sent by (output started at /home2/oneworld/public_html/fly/db_mysql.inc:390) in /home2/oneworld/public_html/fly/do.sign.in.php on line 22
Not sure if this means errors in db_mysql.inc or do.sign.in.php.
I'm pretty new to this ,can anyone help ?
heres the do.sign.in.php code :
<?php
if (!eregi("index.php", $PHP_SELF))
{
die ("You can't access this file directly...");
}
$query="select id from members where email='$email' and password='$password' limit 0,1";
$q->query($query);
if ($q->nf()!=0)
{
$q->next_record();
$sess_id=$q->f("id");
session_register("sess_id");
$query="select ip from members where ip='$REMOTE_ADDR' and id='$sess_id'";
$q->query($query);
if ($q->nf()==0)
{
$query="update members set ip='$REMOTE_ADDR' where id='$sess_id'";
$q->query($query);
}
if (!isset($id))
{
header("Location: index.php?action=member_area");
}
else
{
header("Location: track.php?id=$id");
break;
}
}
else
{
$content=error_page("Your login does not exist.");
}
?>
If anyone knows what i need to change please let me know.
If you need more info let me know.
cheers
derekin this file
db_mysql.inc
I am guessing line 390 is the very botom on this ?>
make sure there is no spaces after that. make sure it is the every last line too.