techker Posted November 9, 2008 Share Posted November 9, 2008 hey guys i need to find a script or tutorial to auto generate a membership id and barcode when i add a new client to my database? any budy know were i can find this?? Quote Link to comment https://forums.phpfreaks.com/topic/132063-generate-membership/ Share on other sites More sharing options...
Lamez Posted November 10, 2008 Share Posted November 10, 2008 Try Here Quote Link to comment https://forums.phpfreaks.com/topic/132063-generate-membership/#findComment-686397 Share on other sites More sharing options...
ok Posted November 10, 2008 Share Posted November 10, 2008 lol, it's just an easy logic script. why not create it from scratch. Quote Link to comment https://forums.phpfreaks.com/topic/132063-generate-membership/#findComment-686416 Share on other sites More sharing options...
techker Posted November 10, 2008 Author Share Posted November 10, 2008 lol it maybe is for you but i just need a quick tutorial to beggin.i have tryed google(lamez) and it is all pre made stuff.and i dont know the php term to use. Quote Link to comment https://forums.phpfreaks.com/topic/132063-generate-membership/#findComment-686574 Share on other sites More sharing options...
zq29 Posted November 10, 2008 Share Posted November 10, 2008 You can generate unique member ids using a MySQL auto_increment field, and build barcodes with the GD Library or use something like the pro version of JPGraph to generate the barcodes for you. Quote Link to comment https://forums.phpfreaks.com/topic/132063-generate-membership/#findComment-686592 Share on other sites More sharing options...
techker Posted November 10, 2008 Author Share Posted November 10, 2008 well i already have an id from the mysql.i will use that..cause my buddy wanted higher numbers..or 000001 i will check out the site thx Quote Link to comment https://forums.phpfreaks.com/topic/132063-generate-membership/#findComment-686609 Share on other sites More sharing options...
zq29 Posted November 10, 2008 Share Posted November 10, 2008 <?php $id = 1; echo str_pad($id,6,"0",STR_PAD_LEFT); //Outputs 000001 ?> Quote Link to comment https://forums.phpfreaks.com/topic/132063-generate-membership/#findComment-686875 Share on other sites More sharing options...
techker Posted November 10, 2008 Author Share Posted November 10, 2008 thx. Quote Link to comment https://forums.phpfreaks.com/topic/132063-generate-membership/#findComment-687271 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.