Home Backend Development PHP Tutorial 网页登陆有关问题

网页登陆有关问题

Jun 13, 2016 pm 01:31 PM
name pwd quot script

网页登陆问题
用php做的图书馆管理系统,连上了数据库,可是在网页上登陆时老是提示“管理员名称错误”,究竟会是哪里出了问题呢?实际上管理员的名称和密码都没有出错

------解决方案--------------------
把sql打印出来,在查询器里执行一次看看
------解决方案--------------------

探讨
include("conn/conn.php"); //连接数据源
$sql=mysql_query("select * from tb_manager where name='".$this->name."' and pwd='".$this->pwd."'",$conn);
$info=mysql_fetch_array($sql); //检索管理员名称和密码是否正确
if($info==false){ //如果管理员名称或密码不正确,则弹出相关提示信息
echo "";
exit;
}

------解决方案--------------------
$obj=new chkinput(trim($name),trim($pwd)); //创建对象
$name和$pwd从何而来。你定义的是
$A_name=$_POST[name]; //接收表单提交的用户名
$A_pwd=$_POST[pwd]; //接收表单提交的密码
------解决方案--------------------
var_dump调试返回值是啥
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
2 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Best Graphic Settings
2 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. How to Fix Audio if You Can't Hear Anyone
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

What does script mean? What does script mean? Aug 29, 2023 pm 02:00 PM

Script means script or script. In film, television, drama and other art forms, script is used to describe the dialogue, actions and scenes of characters, as well as the development and structure of the story. Script writing requires certain skills and experience, and it should be vivid and powerful, capable of attracting the audience's attention and conveying the emotions and themes of the story. Scripts are particularly important in the film and television industries. They are the basis of creation and determine the storyline, character development and dialogue content of the film. Script is an important tool for artists to create and express themselves.

What does pwd mean in linux What does pwd mean in linux Jul 10, 2023 pm 04:23 PM

pwd in Linux means a common command in Linux. It is a command commonly used by Linux system administrators and ordinary users. It can help users quickly find the current directory, facilitate users to better manage files and directories, and can also help administrators and Users can quickly locate certain specific directories or files to better manage the Linux system.

php提交表单通过后,弹出的对话框怎样在当前页弹出,该如何解决 php提交表单通过后,弹出的对话框怎样在当前页弹出,该如何解决 Jun 13, 2016 am 10:23 AM

php提交表单通过后,弹出的对话框怎样在当前页弹出php提交表单通过后,弹出的对话框怎样在当前页弹出而不是在空白页弹出?想实现这样的效果:而不是空白页弹出:------解决方案--------------------如果你的验证用PHP在后端,那么就用Ajax;仅供参考:HTML code

what is script what is script Oct 12, 2023 am 10:04 AM

In the field of computer science, "script" usually refers to a scripting language or script file. A scripting language is an interpreted programming language commonly used for tasks such as automation, batch processing, and rapid prototyping.

How to solve scripterror How to solve scripterror Oct 18, 2023 am 09:44 AM

Solutions to scripterror include checking syntax, file path, checking network connection, browser compatibility, using try-catch statements, using developer tools for debugging, updating browsers and JavaScript libraries, or seeking professional help. Detailed introduction: 1. Check for syntax errors: Script Error may be caused by syntax errors in JavaScript code. Use developer tools to check the code and fix syntax errors. Make sure that the brackets, quotation marks, semicolons, etc. in the code are correct. etc.

How to use linux pwd command How to use linux pwd command May 18, 2023 am 08:40 AM

In Linux, use the pwd command to view the full path of the "current working directory". Simply put, whenever you operate in the terminal, you will have a current working directory. When the current location is uncertain, pwd is used to determine the exact location of the current directory in the file system. 1. Command format: pwd[option]2. Command function: View the full path of the "current working directory" 3. Commonly used parameters: Generally without any parameters, if the directory is a link: Format: pwd-p displays the actual path instead of using the link path. 4. Commonly used examples: Example 1: Use the pwd command to view the full path of the default working directory Command: pwd output: Copy the code The code is as follows: [root@localh

Is script a css tag? Is script a css tag? Mar 01, 2021 am 10:23 AM

script is not a css tag, but a tag in HTML. This tag is used to define client-side scripts, such as JavaScript; the script element can either contain script statements or point to external script files through the src attribute. The syntax is "<script>// code</script>" or "<script src="script file address"></script>".

What does pwd mean in linux? What does pwd mean in linux? Feb 23, 2023 am 10:14 AM

In Linux, the full name of pwd is print working directory, which means printing the current working directory; the function of the pwd command is to display the current directory, and the syntax is "pwd [option]". The pwd command is mainly used to view the absolute path of the current directory when the current location is not certain.

See all articles