Php site for a piece of JS code! Solution-php Tutorial

Source: Internet
Author: User
Php site for a piece of JS code! For websites written in php, a member table mem in the mysql database has a field called looking (login times). now I want to find a JS code with the following functions: when some members reach 100 or 120, they will jump to pass. php (jump when the looking value is 100 or 120) ------ solution -------------------- calculate a piece of js code using the JS connection php site!
For websites written in the php language, the mysql database has a member table mem with a field called looking (login times)
Then I want to find a piece of JS code with the following functions:
When some members reach 100 or 120, they will jump to pass. php.
(Jump when the looking value is 100 or 120)


------ Solution --------------------
Use js to connect to the database?
------ Solution --------------------
Send ajax to the server, the server returns the number of logins, and the front-end determines whether to jump.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.