Board index   FAQ   Search  
Register  Login
Board index php forum :: Database mySQL & php coding

Student PIN NUMBER

Codes here !

Moderators: macek, egami, gesf

Student PIN NUMBER

Postby olaoyesunday » Mon Aug 06, 2012 3:18 am

Please, can anyone help me with the code I needed to generate a random pin numbers for students registration
olaoyesunday
New php-forum User
New php-forum User
 
Posts: 2
Joined: Thu Aug 02, 2012 2:31 am

Re: Student PIN NUMBER

Postby freshnet » Mon Aug 06, 2012 4:02 am

use mt_rand(min,max), e.g.

Code: Select all
echo mt_rand(1000000,9999999);
User avatar
freshnet
php-forum Active User
php-forum Active User
 
Posts: 252
Joined: Tue Feb 22, 2011 8:19 am
Location: Canada


Return to mySQL & php coding

Who is online

Users browsing this forum: No registered users and 1 guest

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.

cron