Welcome Guest, Not a member yet? Register   Sign In
plug in for generate Member ID/Student ID
#1

Hi,
I need suggestion tools that can help me to generate ID.. example
Code:
LD0001, LD0002,.. 

and it is increment.
This is me. JK not me.
Reply
#2

The max is LD9999?
Use the normal database increment and use http://www.php.net/str_pad

PHP Code:
echo 'LD'.str_pad('20'4'0'STR_PAD_LEFT); 
Reply
#3

(12-26-2016, 10:53 PM)Paradinight Wrote: The max is LD9999?
Use the normal database increment and use http://www.php.net/str_pad

PHP Code:
echo 'LD'.str_pad('20'4'0'STR_PAD_LEFT); 

what is normal database increment?? Undecided
This is me. JK not me.
Reply
#4

(12-27-2016, 03:17 AM)falcon812311 Wrote:
(12-26-2016, 10:53 PM)Paradinight Wrote: The max is LD9999?
Use the normal database increment and use http://www.php.net/str_pad

PHP Code:
echo 'LD'.str_pad('20'4'0'STR_PAD_LEFT); 

what is normal database increment?? Undecided

Code:
CREATE TABLE Tablename
(
ID int NOT NULL AUTO_INCREMENT
...
)
Reply




Theme © iAndrew 2016 - Forum software by © MyBB