Home  >  Article  >  Backend Development  >  php站求一段JS代码!解决办法

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

WBOY
WBOYOriginal
2016-06-13 10:16:17716browse

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


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

Statement:
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