我的login.php代码似乎有什么问题?

编程入门 行业动态 更新时间:2024-10-23 14:34:14
本文介绍了我的login.php代码似乎有什么问题?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我有一个登录页面,由于某种原因,我无法登录。登录页面附加到插入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代码似乎有什么问题?

本文发布于:2023-11-03 12:45:48,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1555168.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:有什么   代码   login   php

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!