According to the mobile phone number to query the user's card type, operator, attribution, region and other information.Mobile phone attribution to entity classPackage org.wx.xhelper.model;/** * Phone Attribution * @author WANGXW * @version 1.0 * @date Jul 9, 4:03:04 PM */public class Pho Nebelong {//
/phone-number-database.rar
PHP + MYSQL mobile phone number attribution query implementation methodThrough the above introduction, we already have our own MYSQL data table. This table has a simple structure: ID (serial number), code
This article introduces how to implement mobile phone number attribution. we can use the api interface and mysql + php for example. if you need it, let's first look at how to use our own database to query multiple mobile phone numbers, we recommend that you have your own mobile phone
This article introduces how to implement mobile phone number attribution. we can use the api interface and mysql + php for example. if you need it, let's first look at how to use our own database to query multiple mobile phone numbers, we recommend that you have your own mobile phone
First we introduce the use of their own database to query multiple mobile phone numbers, it is recommended that you have a database of your own mobile phone number. Under normal circumstances, just to meet the general query, you do not need to buy a professional version of the mobile phone
First code:
Copy Code code as follows:
function Checkreg ()
{
Verify the phone number of the phone number, including section 153,159
if (document.form.phone.value== "" d
The following is the code for verifying the phone number in JS. It is very practical and is the first code for everyone:
The Code is as follows:
Function Checkreg (){// Verify the phone num
PHP mobile phone number, local query program code. This article summarizes two commonly used mobile phone home location query programs. one is to use APIs to call third-party interfaces, one is to use our own mobile phone database to query and then judge the mobile
($data); if (Strpos ($data, ' http://')) { echo ' phone number is malformed! ' } else { echo $data; } } Mobile:
Example TwoThis example uses the mobile database, saves the file locally and then finds the database, but you need to update the database frequently.
The code is as follows
Copy Code
Although there are not many users using asp. there are still a lot of people. Next I will introduce some common codes for mobile phone number Regular Expression verification in asp. You can refer to them.
(China Mobile phone no. 134,135,136,137,138,139,150,151,157,158,159, China Unicom's no. 130,131,132,133,153,155,156, China Telecom's 3G mobile
The positive of the cell phone number verification is:
The code is as follows
Copy Code
var reg =/^0{0,1} (13[0-9]|15[7-9]|153|156|18[7-9]) [0-9]{8}$/;var reg =/^0{0,1} (13[0-9]|15[0-9]) [0-9]{8}$/;
There is also a way of writing
The
Use: Determine the cell phone number in the input box
Input: S: string(1) The telephone number shall consist of numbers, "(") "and"-"(2) Phone number is 3 to 8 digits(3) If the phone number
I found a lot of regular expressions for mobile phone number verification on the Internet, but they are not comprehensive. Today I verified the regular expressions for mobile phone number verification in 153, but the Verification Failed. Now I have reorganized some of the latest Regular Expressions for mobile
China's mainland operators of mobile phone number standard format is: Country code + mobile phone number, such as: 8613912345678. Features such as the following:1. length 13;2. Begin with 86 of the country code;3. Each digit of th
(China mainland Mobile 134,135,136,137,138,139,150,151,157,158,159 number section, China Unicom's 130,131,132,133,153,155,156 number segment and the Chinese telecom 3G mobile phone number paragraph 188, China netcom 3G Mobile phone numbe
To judge the principle of mobile phone number operatorMobile phone number by the National Ministry of Information Industry Unified planning, 11-digit number planning fully consider the number of capacity and
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.