In our daily development, we often encounter companies that need to generate a separate card number for each member. Sometimes, they also need to generate passwords. Many friends have developed games. In the game For point cards, we need php to generate card numbers and passwords. Today I will introduce to you the development ideas for generating point card numbers and passwords in php!
The first step is to download the PHP implementation point card number password generation function library we need to use for this course: http://www.php.cn/xiazai/leiku/696
The second step, after the download is completed, find the php class file we need, unzip it to our local directory, and create a new php file!
The third step, after completion, we need to call this class in the new php file and instantiate the class:
<?php include_once "codemima.php";//引入类文件 //获取密码 $obj = sqlconn(5); $obj = sqlauth('123456','589647'); ?>
Run the file, and the result will be as shown below:
Note:
1.Every Every time I refresh the page, there will be passwords and card numbers that I don’t understand!
2. This type can automatically create databases and data tables and automatically insert data:
The above is the detailed content of Sharing of development ideas for generating point card number passwords in PHP. For more information, please follow other related articles on the PHP Chinese website!