i have a page that gets the info from a form, puts it in the db, and then jump automaticly to another pafe thae showa this information from th DB.
for some reson, the info atays outside from the DB.
can u telll me what is wrong?
<?
mysql_connect("","","");
mysql_select_db("message");
$query_check=mysql_query("select * from users where un='$un'");
while($row_check=mysql_fetch_array($query_check))
{
if($row_check['pw']==$pw)
{
if(!session_is_registered('un'))
{
session_register('un');
mysql_query("insert into online values('$id','$un')") or die(mysql_error());
?>
<script>
<!--
location.href='http://avi/message/first.php?<?=SID?>';
//-->
</script>
<?
}
}
else
{
print"<div align='center' style='font-family:tahoma;'><a href='index.html'>...ìà èåá, ðñä ùåá</div></a>";
}
}
?>