close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Date Picker on update and insert pages not displaying or entering correct date

Thread began 6/21/2012 3:49 pm by sandy170299 | Last modified 6/26/2012 2:03 pm by Jason Byrnes | 836 views | 10 replies |

sandy170299

Date Picker on update and insert pages not displaying or entering correct date

I am using the date picker with data bridge for the first time. Yes, I do have the latest release from a week or so ago. The date enters into the field correctly, but when I save/insert the record, it comes out as 1/01/1970. I am using MySQL as my back end database. The same thing happens on update. It doesn't store the date that is displayed in the field.

Sign in to reply to this post

Jason ByrnesWebAssist

send a copy of the pages please so I can take a look at the code

Sign in to reply to this post

sandy170299

Here is a zipped copy of the update page

Attached Files
employeesxjobsxlaborcodes_update.zip
Sign in to reply to this post

Jason ByrnesWebAssist

try adding the following code at line 1 of the update page:

php:
<?php if(isset($_POST["dateWorked"])) $_POST["dateWorked"] = date("Y-m-d",strtotime($_POST["dateWorked"])); ?>
Sign in to reply to this post

sandy170299

Jason, I get an error and the page won't update.

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/citstime/domains/citstime.com/public_html/employeesxjobsxlaborcodes_update.php:2) in /home/citstime/domains/citstime.com/public_html/webassist/form_validations/wavt_validatedform_php.php on line 3

Warning: Cannot modify header information - headers already sent by (output started at /home/citstime/domains/citstime.com/public_html/employeesxjobsxlaborcodes_update.php:2) in /home/citstime/domains/citstime.com/public_html/employeesxjobsxlaborcodes_update.php on line 115

Sign in to reply to this post

Jason ByrnesWebAssist

you probably have a blank space or line after the closing ?> tag.

see this pthread for details on that error and troubleshooting it:

showthread.php?t=19285

Sign in to reply to this post

sandy170299

Nope - no blank spaces. That's the first thing I checked!

It is updating now, but I'm still getting the errors. I'm using an included file as the web site header, but there are no blank spaces there, either.

This is the error:

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/citstime/domains/citstime.com/public_html/employeesxjobsxlaborcodes_update.php:2) in /home/citstime/domains/citstime.com/public_html/webassist/form_validations/wavt_validatedform_php.php on line 3

Warning: Cannot modify header information - headers already sent by (output started at /home/citstime/domains/citstime.com/public_html/employeesxjobsxlaborcodes_update.php:2) in /home/citstime/domains/citstime.com/public_html/employeesxjobsxlaborcodes_update.php on line 115

Sign in to reply to this post

sandy170299

Jason, I'm attached the included file and the update page. I was not receiving any errors until I added the new line of code on line 1 of the update page. Thanks!

Attached Files
employeesxjobsxlaborcodes_update.zip
Sign in to reply to this post

Jason ByrnesWebAssist

send a copy of the employeesxjobsxlaborcodes_update.php page please.

that error means that there is some sort of output.

is is being reported at line 2:
output started at /home/citstime/domains/citstime.com/public_html/employeesxjobsxlaborcodes_update.php:2


I would need to see the code to troubleshoot, but I'm betting a blank space after the closing php tag.

Sign in to reply to this post

sandy170299

Jason ... this is totally weird. I moved the line of code you asked me to add from line 1 of the update page to line 4 and it's working now without any errors.

<?php require_once("webassist/form_validations/wavt_scripts_php.php"); ?>
<?php require_once("webassist/form_validations/wavt_validatedform_php.php"); ?>
<?php require_once('Connections/timesheets.php'); ?>
<?php if(isset($_POST["dateWorked"])) $_POST["dateWorked"] = date("Y-m-d",strtotime($_POST["dateWorked"])); ?>

Sign in to reply to this post
loading

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