CodeCharge Studio
search Register Login  

Web Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> Archive -> GotoCode Archive

 Time stamping records with CCS, PHP, & MYSQL

Print topic Send  topic

Author Message
jsmith
Posted: 05/03/2003, 5:26 AM

I'm having trouble with setting a timestamp field. When the control type is set to TEXT, my date("Y-m-d H:i") command works fine, but the DB Field is not updated probably due to a Type mismatch. When the control type is set to DATE (as it should be), I get a result like "12/31/69 19:00" for today's date and the DB field is still not updated. I have gone into the connection setup and set the MySQL date format. Anybody have any ideas? Is there a way of bypassing the CCS date format routines? BTW, I'm on version 2.0.6.11 of CCS. Thanks for any help.
RonB
Posted: 05/03/2003, 6:23 AM

the timestamp generated by mysql looks like 2003050153450 this means you can set the field to date and in properties set db fromat to yyyymmddHHnnss, just type it since it's not a preselectable format.

RonB
Jeff S.
Posted: 05/04/2003, 11:43 AM

I have found that if you do not set up your date format first in the Settings and under the connection, any pre-existing forms will not work and you will have to redo them.

Very annoying but not a killer if you do this up front.

Jeff
jsmith
Posted: 05/06/2003, 5:42 AM

Thanks for all the help guys. Things are working now. I found out the CCS will not take the date() command in a SetValue() on a timestamp. CC would but not CCS. It seems CCS wants the integer form of time returned by the time() or mktime() commands. Thanks again


   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.