A
|
alang 8/29/2007 |
Try adding the following code to Edit Page - Before Display event: |
C
|
Crimson author 9/6/2007 |
Try adding the following code to Edit Page - Before Display event: $smarty->assign("value_<your field name here>",now());
|
L
|
laonian 10/9/2007 |
Try adding the following code to Edit Page - Before Display event: $smarty->assign("value_<your field name here>",now());
|
A
|
alang 10/9/2007 |
Sorry to pick up an old thread. I tried your code and did not see an update in my date field. All old values stay unchanged.
|
L
|
laonian 10/10/2007 |
Can you post the code you tried please.
|
A
|
alang 10/10/2007 |
It looks like you are missing a line of code. Try: |
L
|
laonian 10/10/2007 |
It looks like you are missing a line of code. Try: ...
|
A
|
alang 10/10/2007 |
Bit hard to say - typically get this sort of error with any small mistake in the SQL - punctuation, spelling etc.
|
A
|
alang 10/10/2007 |
One other thing is that your SQL does not need to be so complicated. You are only looking for the date so another way would be: |
L
|
laonian 10/11/2007 |
One other thing is that your SQL does not need to be so complicated. You are only looking for the date so another way would be: $str = "SELECT Purchase_Date FROM ".$strjolab_ordering." WHERE ".$strWhereClause; $rs = db_query($str,$conn); $data = db_fetch_numarray($rs); // <<< note change here if ($data[0]=="2007-01-01") $smarty->assign("value_Purchase_Date",now());
|
![]() |
Admin 10/11/2007 |
I suppose this line is wrong: $str = "SELECT Purchase_Date FROM ".$strjolab_ordering." WHERE ".$strWhereClause Should be $str = "SELECT Purchase_Date FROM strjolab_ordering WHERE ".$strWhereClause |
A
|
alang 10/11/2007 |
Good point Alexey - or most probably: |
L
|
laonian 10/11/2007 |
$str = "SELECT Purchase_Date FROM jolab_ordering WHERE ".$strWhereClause;
|