Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / NewStats: 3,151,866 members, 7,813,953 topics. Date: Tuesday, 30 April 2024 at 10:35 PM |
Nairaland Forum / Science/Technology / Programming / Pin Code Generation In Php (1828 Views)
Check My App Pin Pals Out / Online Shopping System In Php Documentation Help / Running Python Codes In Php (2) (3) (4)
(1) (Reply)
Pin Code Generation In Php by ajaxphp7: 6:14pm On Jun 25, 2010 |
<?php $color_red = rand(1314523242123221,424224243144133311); echo $color_red; ?> Please I am trying to develope a website that will demand at random generation of pin codes which will not be repeatable pls somebody help me out. I was given this code by a friend. I need contribution from you guys great programmers |
Re: Pin Code Generation In Php by Beaf: 8:02pm On Jun 25, 2010 |
Try com_create_guid() . It will give you a guid which is always a 32 character hexadecimal. Its fixed length and unique. <?php $uniqueId = com_create_guid(); echo $uniqueId ; ?> |
(1) (Reply)
Advanced Programming Techniques (java) / Need Beta Testers For A New App. / What Tech Skills Are You Learning This Year?
(Go Up)
Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health religion celebs tv-movies music-radio literature webmasters programming techmarket Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10) Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 6 |