random 'card number' generator
| From: | Desmond Coughlan | Date: | Fri, 24 Nov 2006 08:04:52 +0000 |
| Subject: | random 'card number' generator | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-42737@lists.php.net to get a copy of this message | ||
X-No-Archive: true
Hello,
I'm learning PhP and trying to write a library catalogue system, that uses a PostgreSQL
back-end. My db looks like this ...
http://www.chez.com/desmondcoughlan/unix/bibliotheque.sql
I had originally planned to have a username in place of 'card_number', but realised that
there was no point. What I need now is the PhP code that will create a card number, and rather than
having a sequence, I want a random three-digit number. Can someone point me in the direction of
where and how PhP can do this?
Thanks.
D.
---------------------------------
Découvrez une nouvelle façon d'obtenir des réponses à toutes vos questions ! Profitez des
connaissances, des opinions et des expériences des internautes sur Yahoo! Questions/Réponses.