apodigm, on Sep 21 2004, 05:07 AM, said:
Thank you very much Apodigm.
I will try to use your help.
Posted 21 September 2004 - 01:49 PM
apodigm, on Sep 21 2004, 05:07 AM, said:
Posted 21 September 2004 - 08:25 PM
Gax_Export.gif 4.31K
281 downloads<IMG src="/assets/images/logo_2.gif">
Posted 21 September 2004 - 09:48 PM
Posted 23 September 2004 - 08:40 PM
<?php if($content['type']=="document" || $_REQUEST['a']==4) { ?>
<!--//Added by Apodigm 09-06-2004- DocVars - web@apodigm.com-->
<?php if($content['type']=="document" || $_REQUEST['a']==4) { ?>
<?php
$sql2 = "select field_name, field_description, field_caption, field_type, default_text, rank, field_elements from $dbase.".$table_prefix."docvars_fields order by rank";
$rs2 = mysql_query($sql2);
$limit2 = mysql_num_rows($rs2);
if($limit2>0){
?>
Posted 06 October 2004 - 05:09 PM
Quote
Posted 06 October 2004 - 05:14 PM
Posted 06 October 2004 - 05:26 PM
Quote
Posted 06 October 2004 - 05:31 PM
Quote
Posted 06 October 2004 - 06:01 PM
Posted 06 October 2004 - 06:06 PM
Posted 06 October 2004 - 06:11 PM
Posted 06 October 2004 - 06:52 PM
stebrennan, on Sep 8 2004, 04:32 PM, said:
Posted 07 October 2004 - 12:11 AM
apodigm, on Oct 6 2004, 01:11 PM, said:
Posted 07 October 2004 - 02:56 AM
Posted 07 October 2004 - 03:29 AM
jaredc, on Oct 6 2004, 09:56 PM, said:
Posted 07 October 2004 - 03:33 AM
Posted 19 October 2004 - 11:20 AM
Posted 19 October 2004 - 11:53 AM
mrpif, on Oct 19 2004, 05:20 PM, said:
// if($field_value=='') $field_value=0;This will remove the default value of the date field. The default value is being changed to "0" which the calendar popup interprets as January 1st, 1970. (not sure... I didn't write that control.
Posted 20 October 2004 - 11:03 AM
apodigm, on Oct 19 2004, 01:53 PM, said:
  //       if($field_value=='') $field_value=0;
$current_time=time(); if($field_value=='') $field_value=$current_time;... and replacing the two
$field_value==0conditions a few lines lower by
$field_value==$current_timeseems like it solves the problem.
Posted 20 October 2004 - 11:51 AM
}elseif($row['field_type']=='date'){
$docvar_date = $_POST[$row['field_name']];
if($docvar_date=="") {
$docvar_date="0";
} else {
list($d, $m, $Y, $H, $M, $S) = sscanf($docvar_date, "%2d-%2d-%4d %2d:%2d:%2d");
$docvar_date = strtotime("$m/$d/$Y $H:$M:$S");
}
$docvars[$row['field_name']] = $docvar_date;
around line 175, before the "else" part of this conditional (starting at line 128) if($row['field_type']=='file'){
... and now the date is stored properly in MySQL.0 members, 1 guests, 0 anonymous users