Click here to Skip to main content
13,633,642 members

Linux, Apache, MySQL, PHP

 
PinnedForum Guidelines - PLEASE READ Pin
Chris Maunder28-Jul-09 2:39
adminChris Maunder28-Jul-09 2:39 
QuestionHow Can I Start Learning PHP Pin
Andre Hoss3-Jul-18 7:03
memberAndre Hoss3-Jul-18 7:03 
AnswerRe: How Can I Start Learning PHP Pin
Richard MacCutchan3-Jul-18 8:27
protectorRichard MacCutchan3-Jul-18 8:27 
GeneralMessage Closed Pin
13-Jul-18 16:18
memberMember 1390489813-Jul-18 16:18 
Questionphp-mysql Pin
Raja Jee2-Jul-18 18:38
memberRaja Jee2-Jul-18 18:38 
AnswerRe: php-mysql Pin
Richard MacCutchan2-Jul-18 21:09
protectorRichard MacCutchan2-Jul-18 21:09 
Questiontrying to get ipn simulator to work.... Pin
piano001126-Jun-18 1:35
memberpiano001126-Jun-18 1:35 
AnswerRe: trying to get ipn simulator to work.... Pin
Richard MacCutchan26-Jun-18 2:07
protectorRichard MacCutchan26-Jun-18 2:07 
QuestionHow to run .html file as default then will run .php of wordpress in same folder by using .htaccess Pin
Member 1388249624-Jun-18 23:32
memberMember 1388249624-Jun-18 23:32 
Rant[REPOST] How to run .html file as default then will run .php of wordpress in same folder by using .htaccess Pin
Richard Deeming25-Jun-18 7:32
mvpRichard Deeming25-Jun-18 7:32 
QuestionHow can I set the timestamp to 0? Pin
piano001114-Jun-18 2:38
memberpiano001114-Jun-18 2:38 
Questionhow to add multiple sql queries? Do I need to join two queries? Pin
piano001110-Jun-18 17:50
memberpiano001110-Jun-18 17:50 
Questionwhat is the difference between mysqli_stmt_num_rows and mysqli_num_rows? Pin
piano001110-Jun-18 17:49
memberpiano001110-Jun-18 17:49 
Questionwhat is the difference between mysqli_stmt_fetch and mysqli_stmt_get_result Pin
piano001110-Jun-18 17:42
memberpiano001110-Jun-18 17:42 
QuestionHow can I save a record into MySQL database while the data also prints on my POS printer Pin
Member 1369186123-May-18 8:03
memberMember 1369186123-May-18 8:03 
QuestionSimple PHP MYSQL query problem Pin
Johannes Moolman19-May-18 4:43
memberJohannes Moolman19-May-18 4:43 
AnswerRe: Simple PHP MYSQL query problem Pin
Jochen Arndt28-May-18 23:03
mvpJochen Arndt28-May-18 23:03 
QuestionProblem using accordian with table row Pin
Member 1382254218-May-18 22:23
memberMember 1382254218-May-18 22:23 
QuestionHow to access text data from parent form to child form Using $_SERVER['PHP_SELF'] Pin
Member 1369186129-Apr-18 12:27
memberMember 1369186129-Apr-18 12:27 
Questionbarcode generator code Pin
Mayuri Konde28-Apr-18 1:55
memberMayuri Konde28-Apr-18 1:55 
QuestionHow to reduce the size of a php webpage form into POS-printer-friendly page Pin
Member 1369186126-Apr-18 5:26
memberMember 1369186126-Apr-18 5:26 
QuestionHow to make data entered on a form that has not been submitted into MySql database appear on another form Pin
Member 1369186126-Apr-18 5:22
memberMember 1369186126-Apr-18 5:22 
QuestionHow to use 4 digit incremental serial number on mysql database using PHP on my form Pin
Member 1369186126-Apr-18 2:16
memberMember 1369186126-Apr-18 2:16 
AnswerRe: How to use 4 digit incremental serial number on mysql database using PHP on my form Pin
Jochen Arndt26-Apr-18 2:31
mvpJochen Arndt26-Apr-18 2:31 
Computers don't know about leading zeroes. That is just a form of representing numbers to humans (being shown on screen, printed, or even written on a piece of paper).

So just use
$lastRow = $maxRows + 1;
If you want to show the number with leading zeroes, use a corresponding formatting function like PHP: sprintf - Manual[^]:
echo sprintf("%03d", $lastRow);

GeneralRe: How to use 4 digit incremental serial number on mysql database using PHP on my form Pin
Member 1369186126-Apr-18 2:42
memberMember 1369186126-Apr-18 2:42 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Cookies | Terms of Service
Web04 | 2.8.180712.1 | Last Updated 3 Jul 2018
Copyright © CodeProject, 1999-2018
All Rights Reserved.
Layout: fixed | fluid