I'm having problem to generate the reference number for my application form.
I've read the last thread, post by SoulAssassin on easy reference number.But I still can't get it.
I would like to display the reference nyumber for each application (example : T0001,T0002...)
I do understand the function of this
mysql_query("INSERT INTO mee (product) values ('kossu')");
printf("Last inserted record has id J%04d\n", mysql_insert_id());
But how this number will be insert into DB?when the user finished the form?
$refNumber = sprintf('%s-%08d', date('Ymd'), mysql_insert_id());
how this $refNumber will be insert into the DB?
Some one please help....