Re: auto increment
| From: | George Nicolae | Date: | Thu, 05 Dec 2002 12:08:50 +0000 |
| Subject: | Re: auto increment | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-17287@lists.php.net to get a copy of this message | ||
just
for ($i=1;$i<100;i++)
{
if($i<10) $string="rur0".$i;
else $string="rur:.$i;
{
--
Best regards,
George Nicolae
IT Manager
___________________
PaginiWeb.com - Professional Web Design
www.PaginiWeb.com
"Pat Johnston" <patj@ncable.net.au> wrote in message
news:20021205113627.73850.qmail@pb1.pair.com...
> Hi
> With php, just wondering if anyone knows if I can auto increment a number
> that has a part string? Is it possible to code this for an ID in MySQL
> database?
>
> ie
> rur01
> rur02
> rur03
>
>