close ad
WARNING: Do Not Install the DREAMWEAVER CC 2017 or 2018 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Insert Date Problem

Thread began 3/10/2010 2:34 pm by fabianmcelhill370894 | Last modified 3/15/2010 6:53 pm by fabianmcelhill370894 | 1503 views | 11 replies

John LangerBeta Tester

Fabian,

I'm close but not close enough I'm afraid. And I've now run out of time as I'm going out. However this is where I'm at.

Change line 105 to

php:
<td class="WADADataTableCell"><input type="text" name="date_name" id="date_name" value="<?php echo date('d/m/Y',strtotime($row_WADAdatetestTbl['event_date'])); ?>" size="32" /></td>

That will display the existing date in the format you like.

The thing that I'm not getting is how to convert that back so the MySql will accept it. The example that Jason gave does not seem to work when Updating a record.

How ever you do have an error in Line 55. You have the date set to d-m-Y and it should be Y-m-d which is the MySql way of writing it.

This is the line in full but it still updates with 000-00-00 so I'm stumped now and have no time to continue to play with it. Perhaps someone else will come to our rescue.

php:
$WA_fieldValuesStr = "".((isset($_POST["event_date"]))?date("Y-m-d", strtotime($_POST["event_date"])):"") ."" . "|" . "".((isset($_POST["event_name"]))?$_POST["event_name"]:"") ."";



Incidentally you had the wrong field name in line 105. I think it was date_name instead of event_date so that was causing an error as well.

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...