You are here: Re: [PHP] 4 Digit ID with Leading Zeros « PHP « IT news, forums, messages
Re: [PHP] 4 Digit ID with Leading Zeros

Posted by "Rahul S. Johari" on 12/15/05 18:57

Ave,

That Worked!!
That was the perfect solution. Everything is working just the way I wanted
it to work now. I'm using ZEROFILL in my mySQL table and pulling the ID to
generate the filename.

Thanks a TON!

On 12/15/05 10:17 AM, "David Grant" <david@grant.org.uk> wrote:

> Rahul,
>
> Rahul S. Johari wrote:
>> The 4 Digit ID (beginning from 0001) will be used in two places:
>> (a) It will be the ID for the record in the mySQL table, instead of the
>> usual ID that we create in mySQL. It will be a Primary Key, Not Null,
>> Auto_Increment
>
> Adding ZEROFILL to that definition might be what you're after.
>
> Cheers,
>
> David

Rahul S. Johari
Coordinator, Internet & Administration
Informed Marketing Services Inc.
251 River Street
Troy, NY 12180

Tel: (518) 266-0909 x154
Fax: (518) 266-0909
Email: rahul@informed-sources.com
http://www.informed-sources.com

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация