close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Insert Current Date

Thread began 11/15/2012 8:50 am by jgroh96793 | Last modified 11/15/2012 8:57 am by Jason Byrnes | 562 views | 1 replies |

jgroh96793

Insert Current Date

Hi all,

I did a search but didnt find a solution...how can I insert the current date when I am using the Insert server behavior? When I used the Interakt MX Kollection server behaviors, I would put in {NOW} in the dialog box. Can you do that inside the data assist Insert behavior?

John

Sign in to reply to this post

Jason ByrnesWebAssist

theres a few ways to do this:

1) Set the default value for the date column to:
CURRENT_TIMESTAMP

Then no binding is needed in the insert, the database will automatically set the date column to the current date on insert.

2) create a hidden element and set the value to:

<?php echo(date("Y-m-d h:i:s")); ?>


the bind the date column to the hidden element

3) Instead of binding to the hidden element, set the code for the date column to:
<?php echo(date("Y-m-d h:i:s")); ?>

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...