我有一个登录页面,由于某种原因,我无法登录。登录页面附加到插入php页面,这是login.php 无论它有什么错误我已经纠正了它至少我看到的错误但是当我做了更正时,页面变成了空白。 我相信它也有一个我无法看到的错误,我已经检查了所有的括号只是为了看如果我遗漏了一个或没有放任何分号或任何东西,但没有我能看到的, 可以有人为我多付一双眼睛,因为我必须在两天内交出来。 我尝试了什么: 所以这是我的代码
i have a login page and for some reason, i cannot login. the login page is attached to the insert php page which is the login.php whatever error it had i have corrected it well at least the error that I have seen but when i did the correction, the page went blank. I believe it also have an error there that I cannot see, I have checked all of my brackets just to see if I have left out one or didnt put any semi-colon or anything but there is none that I can see, can someone throw an extra pair of eyes for me, becauseI have to hand this up in two days time. What I have tried: so here is my code
if(isset($_POST['submit']))) { $screenname=$_POST['screenname']; $mypwd=$_POST['mypwd']; include'db_server.php //connection code to the db $sql ="SELECT * FROM members WHERE $screenname=$screenname' AND mypwd=md5('mypwd'); $result=mysqli_query($conn, $sql) or die("ERROR: '.mysqli_error($conn); $rowcount=mysqli_num_rows($result); if($rowcount == 1) { session_start(); $_session['view']=$screenname; header("location:\..php/featureNationalWonders.php"; } else { echo " window.location:\../xhtml/login.html\" } /pre>推荐答案
_POST [' submit']))) { _POST['submit']))) {
screenname = screenname=
_POST [' screenname']; _POST['screenname'];
更多推荐
我的login.php代码似乎有什么问题?
发布评论