这个用php如何写

WBOY
Release: 2016-06-13 13:31:57
Original
937 people have browsed it

这个用php怎么写
表一 ID,U_ID(用户编号,如345),HITS(宣传数)
  表二 S_ID(表一ID,外键),IP_INFO,OTHER

具体方法为www.abc.com?u=345----》www.abc.com/xuanchan.php?u=345(自己根据需求设置,也可以是INDEX.PHP 这里给出一个方法)
xuanchan.php处理的内容
1.接受U参数,
2.读表二中的内容,查询是否存在相同的IP,如果是 则跳转到主界面/注册界面(设置主界面除外),如果不是先执行HITS+1操作,然后进入主界面/注册界面.


------解决方案--------------------
谁给你写,不会自己去学。
------解决方案--------------------
好好学习咯.....没人有空写的

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 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!