[thelist] mysql primary key question..

Erick Papadakis erick_papadakis at yahoo.com
Mon Jul 8 13:11:01 CDT 2002


thanx shanx - that works for me perfectly!!

exactly the function i was looking for!

you rock my man!

erick



--- Shashank Tripathi <sub at shanx.com> wrote:
> Erick, good ideas...but I guess your best bet is to have the numeric
> field as ID to be auto-sequenced by MySQL, and then generate a base36
> number based on it (which you can use as a unique key etc). Following
> is
> a code snippet for base36 function in PHP, I am adding it as a tip for
> the benefit of EVOLT posterity. Hope this solves your problems..
>
> Cheers,
> -Shanx.
>

=====
thanks/erick

__________________________________________________
Do You Yahoo!?
Sign up for SBC Yahoo! Dial - First Month Free
http://sbc.yahoo.com



More information about the thelist mailing list