rezajooni
سه شنبه 26 فروردین 1393, 11:43 صبح
دوستان این مشکل مربوط به چیه؟
118014
میخوام صفحه لاگین کاربر بسازم این ارور رو میده
کدها هم اینن:
<?php session_start(); ?>
<?php ob_start();
include 'funcs/connect.php';
$p=sprintf ("select * from studentid='%s' and password='%s'" ,$_POST['un'],$_POST['pw']);
$r=mysql_query($p);
$n=mysql_num_rows($r);
if ($n>0){
header ("studentpanel.php");
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" href="style/style.css" type="text/css" />
<script type="text/javascript" src="js/jquery-1.11.0.min.js"></script>
<title>ساخت منو</title>
</head>
<body>
<div id="all">
<header id="head">
<p>سیستم مدیریتی ساخت منو</p>
</header>
<div id="rights">
<div id="right">
<div class="h-side">
<h4>منوی سریع</h4>
</div>
<ul>
<li><a href="#">صفحه اصلی</a></li>
<li><a href="#">درباره ما</a></li>
</ul>
</div>
<div id="right">
<div class="h-side">
<h4>منوی سریع</h4>
</div>
<ul>
<li><a href="#">صفحه اصلی</a></li>
<li><a href="#">درباره ما</a></li>
</ul>
</div>
<div id="right">
<div class="h-side">
<h4>عضویت</h4>
</div>
<form action="index.php" method="post">
<p><b>نام کاربری : </b>
<input name="un" type="text" id="un" style="margin-right:10px;" />
</p>
<p><b>رمز عبور: </b>
<input name="pw" type="text" id="pw" style="margin-right:23px;" />
</p>
<p>
<input type="submit" value="ورود" />
</p>
</form>
</div>
</div>
<!--end rights-->
<div id="content">
<div class="h-side">
<h4>منوی سریع</h4>
</div>
</div>
<footer id="footer">
<p>تمام حقوق سایت محفوظ است</p>
</footer>
</div>
<!--end all-->
</body>
</html>
118014
میخوام صفحه لاگین کاربر بسازم این ارور رو میده
کدها هم اینن:
<?php session_start(); ?>
<?php ob_start();
include 'funcs/connect.php';
$p=sprintf ("select * from studentid='%s' and password='%s'" ,$_POST['un'],$_POST['pw']);
$r=mysql_query($p);
$n=mysql_num_rows($r);
if ($n>0){
header ("studentpanel.php");
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" href="style/style.css" type="text/css" />
<script type="text/javascript" src="js/jquery-1.11.0.min.js"></script>
<title>ساخت منو</title>
</head>
<body>
<div id="all">
<header id="head">
<p>سیستم مدیریتی ساخت منو</p>
</header>
<div id="rights">
<div id="right">
<div class="h-side">
<h4>منوی سریع</h4>
</div>
<ul>
<li><a href="#">صفحه اصلی</a></li>
<li><a href="#">درباره ما</a></li>
</ul>
</div>
<div id="right">
<div class="h-side">
<h4>منوی سریع</h4>
</div>
<ul>
<li><a href="#">صفحه اصلی</a></li>
<li><a href="#">درباره ما</a></li>
</ul>
</div>
<div id="right">
<div class="h-side">
<h4>عضویت</h4>
</div>
<form action="index.php" method="post">
<p><b>نام کاربری : </b>
<input name="un" type="text" id="un" style="margin-right:10px;" />
</p>
<p><b>رمز عبور: </b>
<input name="pw" type="text" id="pw" style="margin-right:23px;" />
</p>
<p>
<input type="submit" value="ورود" />
</p>
</form>
</div>
</div>
<!--end rights-->
<div id="content">
<div class="h-side">
<h4>منوی سریع</h4>
</div>
</div>
<footer id="footer">
<p>تمام حقوق سایت محفوظ است</p>
</footer>
</div>
<!--end all-->
</body>
</html>