How to autogenerate the value in php>>>>>.

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
rajkumar.shri
Forum Newbie
Posts: 5
Joined: Mon Sep 15, 2008 1:56 am

How to autogenerate the value in php>>>>>.

Post by rajkumar.shri »

Hi,

i want to store this value as database.

For eg:- 9001-1, 9001-2, 9001-3.....upto n..
Only the second value.
This is a particular billno which carries lots of things like 1,2,3.. thats why want to insert this value in database.. even i tried this in for loop. i can't get..

if anyone know pl post me..
User avatar
VladSun
DevNet Master
Posts: 4313
Joined: Wed Jun 27, 2007 9:44 am
Location: Sofia, Bulgaria

Re: How to autogenerate the value in php>>>>>.

Post by VladSun »

Normalize your DB design - i.e. two separate columns for the "9000" and "1,2, 3..." values.
You'll soon find how helpfull this redesign is.
There are 10 types of people in this world, those who understand binary and those who don't
Post Reply