Hi, I am working on a Inventory management system. No I would like to have a custom bill no, which will be changed on each month, i.e. the first bill of March, 2011 will have a no like "Mar/2011/01", the next will be "Mar/2011/02" and so on, until it is March, 2011. On April 2011 it will start again from one, as "Apr/2011/01"..... and so on. I am using Mysql & PHP for the project. How to achieve this???
anirban1087 0 Junior Poster in Training
Recommended Answers
Jump to Postwhenever your are going to generate a bill then use this function to get current date:
echo Date('M/Y/d');
and save this in your database.
Jump to Postthen try his:
$d = mktime(0,0,0,date("m"),1,date("Y")); echo "Date: ".date("M/Y/d", $d);
All 6 Replies
qazplm114477 14 Junior Poster

P0lT10n
Shanti C 106 Posting Virtuoso
anirban1087 0 Junior Poster in Training
Shanti C 106 Posting Virtuoso
anirban1087 0 Junior Poster in Training
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.