CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: DBI:
timestamp from database

 



jsv
New User

Mar 13, 2008, 2:21 AM

Post #1 of 1 (2723 views)
timestamp from database Can't Post

Hi,

I am getting a date from the database using perl script. The date is stored in the database table with its timestamp. I could get the date but not the timestamp. How can I get the timestamp with that date ?

I am using DBI to get the data from database.Here is code :


Code
 use DBI;$sth = $db->prepare(" SELECT l.updated_date FROM 
lms_letter l where l.letter_id = ? ");$sth->execute($lms_id); my @results = $sth->fetchrow_array(); $sth->finish();



Can anyone help me on this please ?

Thanks,

J.

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives