php站求一段JS代码!解决办法

WBOY
Release: 2016-06-13 10:16:17
Original
716 people have browsed it

php站求一段JS代码!
php语言写的站,mysql数据库中有一个会员表 mem 中有一个字段叫 looking (登陆次数)
然后我现在想求一段JS代码,功能如下:
当有的会员陆次数的值为100或120的时候就跳转到pass.php
(即当looking的值为100或120时候就跳转)


------解决方案--------------------
要用js连接数据库?
------解决方案--------------------
发ajax到服务器,服务器返回登陆次数,前台再做判断是否跳转。

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