Ok, not to rehash the past but brad did ask a legitimate question.
This
$LC_ms = ($_POST['LC_ms'] == '') ? '001' sprintf('%03s', $LC_ms) : $_POST['LC_ms'];
is the same as this
if($_POST['LC_ms'] == '') {
$LC_ms = '001' sprintf('%03s', $LC_ms);
}
else {
$LC_ms = $_POST['LC_ms'];
}
Now you may not have picked up on it but this line
$LC_ms = '001' sprintf('%03s', $LC_ms);
is not correct syntax hence why brad asked about this line (well, this line before it was changed)
'001' sprintf('%03s', $LC_ms)
At minimum you need to join the 2 strings (note the period (.))
'001' . sprintf('%03s', $LC_ms)
but if "$LC_ms" is "5", for example, that will output "001005", is that what you're looking for?
I suspect that is not the number you want and you should just drop the 001 from the code.
Lastly I will add an advisory note. You probably shouldn't send moderators packing, especially ones that are smarter than me. 😃