<html>
<head>
<link href="themes/home/style_home.css" rel="stylesheet" type="text/css" media="screen" />
<title>Bulacan</title>
<style type="text/css">
.style11 {color: #0B9FCA}
.style13 {font-family: Arial, Helvetica, sans-serif; font-size: 16px; color: #000000; }
</style>
</head>
<body>
<div id="header">
<div id="menu">
<ul>
<li class="current_page_item"><a href="index.php">Back</a></li>
</ul>
</div>
</div>
<div id="logo">
</div>
<!-- end header -->
<div id="text">
<p><?php
session_start();
$idS= session_id();
$id2 = $idS;
$id = $_SESSION['id3']=$id2;
$link = mysql_connect('ipage', '*username*', '*password*');
if (!$link) {
die('Could not connect: ' . mysql_error());
}
mysql_select_db(dbwebsite);
$fromUser=$_POST['txtuser'];
$fromPass=$_POST['txtpass'];
$_SESSION['user'] = $fromUser;
$sql="Select * from reg_members where username='$fromUser'";
$result=mysql_query($sql);
if(!$id){
echo "no session!";}
else{
if(!$fromUser || !$fromPass){
echo '<center><h1>Either username or Password is Incorrect<h1><p/>';
session_destroy();
}
else
{
if($result){
$row=mysql_fetch_array($result);
$username=$row['username'];
$password=$row['password'];
if($fromUser==$username && $fromPass==$password){
header("refresh: 1; index_home.php");
echo "<center><h1>Please wait a second.....</h1><p/>";}
elseif($fromUser=='administrator' && $fromPass=='admin123'){
header("refresh:1;user_admin.php");
echo "<center><h1>Please wait a second.....</h1><p/>";}
else{
echo '<center><h1>Log in failed</h1><p/>';
session_destroy();
}
}
}
}
?></p>
</div>
<div id="footer">
</div>
</html>
"this is my code. i really don't know what to do i've searched so many solutions but i really can't figure out whats wrong. Its my first time putting my website on the web. need some help please please please"