S
|
swanside 5/17/2008 |
I have a table called tablea with a readonly text field called dateandtime.I would like to know how to have the date and time automatically added after a new record is added so that it appears in the list page. the date format would be day month year and then hpurs minutes and secounds. I thought this might be relativly easy however the more I researched it the more confused i get.
|
B
|
bochaka author 5/17/2008 |
Hi |
J
|
Jane 5/20/2008 |
Hi, date("Y-m-d",strtotime("+6 hour"))
|
B
|
bochaka author 5/21/2008 |
H Jane |
J
|
Jane 5/22/2008 |
Hi, date("Y-m-d h:i:s",strtotime("+6 hour"))
|
B
|
bochaka author 5/22/2008 |
Works Fine, Many Thanks. |
B
|
bochaka author 5/22/2008 |
Now for the hard bit, I hope you can help me again with this. |
J
|
Jane 5/23/2008 |
Hi, {if $check_date} <a href=...>...</a> {/if}
$smarty->assign("check_date",1); |
B
|
bochaka author 5/23/2008 |
do i need to replace the " $check_date" bit with some other code or enter it as is, and where do I specify 90 days, |
J
|
Jane 5/26/2008 |
Hi, |
B
|
bochaka author 5/26/2008 |
Hi Jane |