登录问题 [英] Login problem

查看:56
本文介绍了登录问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨everyBody,


我在登录时遇到问题。请告诉我,这有什么不对。是DB还是PHP代码?


DB:

Hi everyBody,

Iam having a problem in the login..Tell me please what is the wrong. Is it in DB or PHP code?

DB:

展开 | 选择 | Wrap | 行号

推荐答案

hiya MissElegant,


欢迎来到字节!!


这个脚本显示的错误是什么,我相信你的数据库有一个默认用户名和密码,连接时应该是供应的,应该更有可能::


[PHP] mysql_connect(" localhost"," root","")[/ PHP]


休息,如果你可以粘贴错误然后它会更容易帮助你..

请使用适当的标签(BBCODE)来包含你的代码:)


thanks&干杯!!
hiya MissElegant,

Welcome to bytes !!

what is the error this script is showing, and i believe your database has a default username and password which should be supplies while connecting and that should be more likely ::

[PHP]mysql_connect("localhost","root","")[/PHP]

Rest if you can paste the error then it would be easier to help you out..
And please use proper tags (BBCODE) to enclose your code :)

thanks & Cheers !!



hiya MissElegant,


欢迎来到字节!!


这个脚本显示的错误是什么,我相信你的数据库有一个默认用户名和密码,连接时应该是供应的,应该更有可能::


[PHP] mysql_connect(" localhost"," root","")[/ PHP]


休息,如果你可以粘贴错误然后它会更容易帮助你..

请使用适当的标签(BBCODE)来包含你的代码:)


thanks&干杯!!
hiya MissElegant,

Welcome to bytes !!

what is the error this script is showing, and i believe your database has a default username and password which should be supplies while connecting and that should be more likely ::

[PHP]mysql_connect("localhost","root","")[/PHP]

Rest if you can paste the error then it would be easier to help you out..
And please use proper tags (BBCODE) to enclose your code :)

thanks & Cheers !!



感谢您的欢迎:)

这是错误:


警告:无法发送会话cookie - 已在第25行的C:\\\\ e-school2 \ login.php中发送的输出(输出从C:\\\\ e-school2 \login.php:3开始)


警告:无法发送会话缓存限制器 - 已在C:\ www中发送的标头(输出从C:\\\\ e-school2 \login.php:3开始)第25行\\ e-school2 \login.php


警告:打开(/ tmp\sess_98c6419df10071ce3f3d76284f45e79b,O_RDWR)失败:C:中没有此类文件或目录(2)第25行\\ school2 \login.php


警告:无法添加标题信息 - 已经发送的标题(输出从C:\\\ n开始-school2\login.php:3)在第28行的C:\\\\e-school2 \ login.php


警告:打开(/ tmp\sess_98c6419df10071ce3f3d76284f45e79b ,O_RDWR)失败:没有这样的文件或目录(2)在第0行的Unknown中


警告:无法写入会话数据(文件)。请确认第0行的未知中session.save_path的当前设置是否正确(/ tmp)


我不知道代码有什么问题,我认为代码是对的!!

你怎么看..


谢谢

Thanks for welcoming :)
this is the error:

Warning: Cannot send session cookie - headers already sent by (output started at C:\www\e-school2\login.php:3) in C:\www\e-school2\login.php on line 25

Warning: Cannot send session cache limiter - headers already sent (output started at C:\www\e-school2\login.php:3) in C:\www\e-school2\login.php on line 25

Warning: open(/tmp\sess_98c6419df10071ce3f3d76284f45e79b, O_RDWR) failed: No such file or directory (2) in C:\www\e-school2\login.php on line 25

Warning: Cannot add header information - headers already sent by (output started at C:\www\e-school2\login.php:3) in C:\www\e-school2\login.php on line 28

Warning: open(/tmp\sess_98c6419df10071ce3f3d76284f45e79b, O_RDWR) failed: No such file or directory (2) in Unknown on line 0

Warning: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/tmp) in Unknown on line 0

I don''t know what is wrong about the code, I think the code is correct!!
What do you think..

Thanks


警告:

请将您发布的代码附在[code]标签中(参见如何提问)。


这使我们的专家更容易阅读和理解它。如果不这样做会给版主带来额外的工作,从而浪费资源,否则可以回答会员的问题。


请将来使用[code]标签。


MODERATOR
WARNING:
Please enclose your posted code in [code] tags (See How to Ask a Question).

This makes it easier for our Experts to read and understand it. Failing to do so creates extra work for the moderators, thus wasting resources, otherwise available to answer the members'' questions.

Please use [code] tags in future.

MODERATOR


这篇关于登录问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆