ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> php-db
php-db
[PHP-DB] random 'card number' generator
by Desmond Coughlan other posts by this author
Nov 24 2006 12:08AM messages near this date
Re: [PHP-DB] Any hints lantin1 utf-8 | Re: [PHP-DB] random 'card number' generator
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 the
re 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 di
rection of where and how PhP can do this?

Thanks.

D.

 		
---------------------------------
 D�couvrez une nouvelle fa�on d'obtenir des r�ponses � toutes vos questions ! Profit
ez des connaissances, des opinions et des exp�riences des internautes sur Yahoo! Questions
/R�ponses.
Thread:
Desmond Coughlan
Jeffrey

Privacy Policy | Email Opt-out | Feedback | Syndication
© 2004 ActiveState, a division of Sophos All rights reserved