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'])
Did you know?Explore Trending and Topic pages for more stories like this.
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?
No comments posted yet

Your Answer:

Login to answer
138 Like 32 Dislike
Previous forums Next forums
Other forums

SOAP Issue
Hi,

I am facing some understanding problem with SOAP basic.kindly recommend some SOAP expert.

Take info from one coloum and move to another
Hi all,

I have this:
Code: [Select]$array = "SELECT stock_id FROM stocks WHERE stock_

help with php
It's not displaying or pulling anything out of the database.


Code: <html><

is_dir() problem
Hello,

I'm buidling a php scripts that dynamically get's subfolders from a specific folder.

Most basic form question ever?
Hello,

I want to use this snippet to make sure the fields in a form are ok before processing

word wrap in emails help needed
Hello, I understand how wordwrap works in php and have used it well before. However when I used wor

Ignore html and bbcode?
I've created a function to limit the amount of text according to the amount of words.

However

How do i use vars in an array
Hiya peeps!

How do I use a var in an array. You will see $id but it isnt working.


PHP MySQL Return Results Issue
Hi guys,

I'm running joomla and made a module which is using ajax.
Basically i just have a

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

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