Format timestamp from mysql


Posted on 16th Feb 2014 07:03 pm by admin

When I tried this:
Code: date("m/d/Y H:i A", $row['timestamp'])
I got 12/31/1969 18:33 PM, so I know the time section is working at least. How can I get the mm/dd/yyyy section to work correctly?

138 Like 32 Dislike
Previous php-forum Next php-forum
Other php-forum

Problem with PHP/mySQL login code
Hello,

There is an error in my login script and I can't figure out what it is...
I believe

switch not getting value
what am i doing wrong?
i want to populate the country list according to the category
i want to

max() problem
I have a while loop to get image names.
Code: $imagequery = mysql_query("SELECT * FROM ad_i

Simple program to copy files between two computers over the web
I use logmein free and often need to move files between my two computers. Generally, I move the file

Database 'Validation'
Hi everyone,
I'm trying to validate the password entered by the user with the password in the dat

calculator
I can't figure out why this code doesn't work. No error messages. Page loads.

Code: <

login to other site by sending post variables
hey,

here is my problem: my school gave me a mail account for school-stuff use. they mail us

Wrong Info sent Using $get in form
Hi i have this code that i tried to make to send some info from one page to aother with lots of ppls

Access database inside of a validation class
Hello,

For quite some time, I have been using functions to validate form input and access the

Mail sending is slow on server
Why mail is taking time to be send on apache-linux server

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash