Forum Moderators: coopster

Message Too Old, No Replies

generating sequential numbers

         

konaandcooper

9:26 pm on Apr 6, 2006 (gmt 0)

10+ Year Member



I am going to want a programmer to add sequential numbers to identify unique transactions on a software I am having modified. I s this a difficult thing to accomplish?

Forgive my ignorance.

grandpa

9:39 pm on Apr 6, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



It shouldn't be difficult at all. With MySQL you can create a field in a table, I usually call this recid, defined as an integer with the auto_increment attribute set. So, one definition might look like this example:

$sql = "CREATE TABLE my_table (
recid int(11) NOT NULL auto_increment,
PRIMARY KEY (recid)
) TYPE=MyISAM;";

konaandcooper

10:02 pm on Apr 6, 2006 (gmt 0)

10+ Year Member



Thanks a lot