php问题,请好心的朋友来帮我一下,万分感谢

WBOY
Release: 2016-06-23 13:56:00
Original
860 people have browsed it

http://docs.huihoo.com/php/phpmysqlwd3e/Source/Source.zip
这是php mysql开发书的源码,在里面第26章,就是那个文件夹写着26的,一切代码都很正常,添加书签正常,但是唯独无法删除书签,请好心人帮忙看一下好吗?我是新手。
我看了它删除书签的sql语法好像没问题,但是我看它接收的方式是 $HTTP_GET_VARS ,感觉好像不太对,$HTTP_GET_VARS 应该已经被废弃了,我的php版本是5.3.28,请好心的朋友告诉我 该如何改动才能删除书签?

您需要先导入 sql格式的数据库文件,数据库是mysql
然后运行 localhost/26/login.php ,根据你的路径而定。测试注册登录 ,添加书签,一切都很正常,但是点击删除书签就失败了。 


回复讨论(解决方案)

进程洁癖,机器裸奔N年表示可疑文件从来不碰
改成$_GET试试

把所有形如 $HTTP_XXXX_VARS 的都改为形如 $_XXXX 的

使用$_POST获取参数就可以了。

Related labels:
php
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 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!