Wrox Programmer Forums
|
BOOK: Beginning PHP4/PHP 5 ISBN: 978-0-7645-4364-7; v5 ISBN: 978-0-7645-5783-5
This is the forum to discuss the Wrox book Beginning PHP4 by Wankyu Choi, Allan Kent, Chris Lea, Ganesh Prasad, Chris Ullman; ISBN: 9780764543647
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning PHP4/PHP 5 ISBN: 978-0-7645-4364-7; v5 ISBN: 978-0-7645-5783-5 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 19th, 2004, 11:07 AM
Authorized User
 
Join Date: Feb 2004
Posts: 57
Thanks: 0
Thanked 0 Times in 0 Posts
Default timestamp

Hi,

I know you get the current date by curdate(). How do i get timestamp that I can insert in my MYSQL table's where field type is timestamp and I could do some calculation later.

Thanks


 
Old November 18th, 2004, 06:23 PM
Registered User
 
Join Date: Nov 2004
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Use NOW() this will do.
example: INSERT INTO test (date) VALUES(NOW())
This will help you.







Similar Threads
Thread Thread Starter Forum Replies Last Post
TimeStamp nay_ctg BOOK: Beginning Cryptography with Java 1 August 7th, 2008 07:37 PM
File name with timestamp bhushanam BOOK: Professional SQL Server 2005 Reporting Services ISBN: 0-7645-8497-9 1 September 28th, 2007 04:39 AM
Timestamp Problem hernann Java Databases 5 September 26th, 2007 07:51 AM
GridView + timestamp victorsj ASP.NET Espanol 0 August 29th, 2006 10:43 AM
GridView + timestamp victorsj ASP.NET 2.0 Professional 0 August 29th, 2006 10:41 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.