php-general | 2001122
Date: 12/22/01
- Next message: Martin Hughes: "[PHP] Php & Directory structures"
- Previous message: J.Mueller, pro.vider.de GmbH: "[PHP] PGP --> PHP"
- Next in thread: Brian Clark: "Re: [PHP] Premature EOS Header"
- Reply: Brian Clark: "Re: [PHP] Premature EOS Header"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
When I call the following script, I get "Premature End of Script Header". Why?
<?php
// file: "root/reg/dis/dis_4.php", updated: 12/15/01
$connection= <email protected>("localhost","wagner","pw") or die ("No connection!");
$db= <email protected>("sbwresearch",$connection) or die ("No database!");
$qry_1="select * from con_inf where username=\"$username\"";
$result_1= <email protected>($qry_1,$connection) or die ("No query # 1!");
$row_1= <email protected>();
// username
if ($row_1==0)
{
<email protected>($result_1);
<email protected>($connection);
header ("location:dis_2.htm");
exit;
}
// password
else
{
$row_2= <email protected>($result_1);
};
if ($password!=$row_2["password"])
{
<email protected>($result_1);
<email protected>($connection);
header ("location:dis_3.htm");
exit;
}
else
{
echo "
<html>
<body>
TEST
</body>
</html>
";
};
<email protected>($result_1);
<email protected>($connection);
exit;
?>
Thanks!
Anthony F. Rodriguez
(afrodriguez <email protected>)
- Next message: Martin Hughes: "[PHP] Php & Directory structures"
- Previous message: J.Mueller, pro.vider.de GmbH: "[PHP] PGP --> PHP"
- Next in thread: Brian Clark: "Re: [PHP] Premature EOS Header"
- Reply: Brian Clark: "Re: [PHP] Premature EOS Header"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

