View file public_html/login1.php

File size: 1.18Kb
<div class="last"><b>Mobile Ad Network</b></div>
<?php include "inc/def.php"; ?>

<?php include "inc/usrchk.php";
if($guest==0) {
header("location:home.php");
} ?>
<title> Mobile Ad Network</title>
<?php include "inc/header.php"; ?>

<div class="line"><b>News</b></div>

<?
if(mysql_num_rows(mysql_query("SELECT * FROM news"))){

$result = mysql_query('SELECT * FROM news');
while ($row = mysql_fetch_array($result, MYSQL_ASSOC)) {
echo '<div class="uright">News : <b>'.$row[news_t].'</b><br></div>
<div class="uright"> '.$row['news'].'</div>';
}
}
else
{
echo "no news";
}
?>
<div class="line">Members Login</div>
<form action="checkme.php" method="post">
<div class="uright">
<label for="user">Username :</label><br />
<input size="30" maxlength="20" type="text" name="user" />
</div>

<div class="uright">
<label for="user">Password :</label><br />
<input size="30" maxlength="20" size="30" maxlength="20" type="password" name="pass" />
</div>

<div class="uright">
<input type="submit" value="Login" />
</div>


</form>

<div class="uright"><a href="forgot.php"><b>Forgot Password</b></a></div>
<div class="uright"> <a href="register.php"><b>Register</b></a></div>


<?php include "inc/footer.php"; ?>