Dan Marsico
New member
I have a date function in my php script that is supposed to give me the time (ex. 11:30 pm) and I was told to make it date("g:i a") instead of date("g:i:s") would make it look that way, but on my site it is still showing up as (ex.) 11:30:00. Does anyone know of a way I can remove the zeros at the end?
I have it so when the user submits the form it posts onto a 'guestbook' and it shows 11:30:00 instead of 11:30. Im guessing it has something to do with this form submit because when I make a simple separate php document <?php echo "date("g:i a")"; ?> it works perfectly. It's extremely frustrating!!
I have it so when the user submits the form it posts onto a 'guestbook' and it shows 11:30:00 instead of 11:30. Im guessing it has something to do with this form submit because when I make a simple separate php document <?php echo "date("g:i a")"; ?> it works perfectly. It's extremely frustrating!!