Home > php教程 > php手册 > body text

PHP学习笔记:注意事项

WBOY
Release: 2016-06-21 09:05:43
Original
850 people have browsed it

笔记

注意事项:

一,注意不要漏了分号(从ASP转来最易有此毛病)

二,注意不要漏掉变量前的$

三,使用SESSION时注意不要遗漏了SESSION_START();

如果发生错误可以采用以下方法

一,如果SQL语句出错,就注释了然后输出SQL语句,注意也要注释掉后续的SQL语句。

二,如果变量为空,大多是没有传递到位,输出变量检查一下,检查一下表单的id和name。

三,如果数据库链接错误,检查是否打开了MYSQL和是否遗漏了连接语句。

四,注意缩进,排除括号不匹配的错误



Related labels:
source:php.cn
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
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!