Modifying how Date displays |
8/24/2007 14:46:57 | |
| PHPRunner General questions | ||
|
[codebox]$str = "<table width=100% bgcolor="; |
||
|
L
|
larsonsc 8/24/2007 |
|
To the best of my knowledge, varchar dates (even when formatted the same as a regular date field) can not be used for date comparisons. I had to set all of my date fileds that I needed to make comparisons to a field type of date. |
|
|
|
paperhog author 8/24/2007 |
To the best of my knowledge, varchar dates (even when formatted the same as a regular date field) can not be used for date comparisons. I had to set all of my date fileds that I needed to make comparisons to a field type of date.
|
|
|
J
|
Jane 8/27/2007 |
|
Lori, //current date - 14 days (14246060) $curd = date("Y-m-d",strtotime(now())-14246060); $str = "<table width=100% bgcolor="; if ($value>= $curd) $str.="white"; Else $str.="pink"; $str.="><tr><td>".$value."</td></tr></table>"; $value=$str; |
|
|
J
|
Jane 8/27/2007 |
|
Lori, //current date - 14 days (14246060) $curd = date("Y-m-d",strtotime(now())-14246060); $str = "<table width=100% bgcolor="; if ($value>= $curd) $str.="white"; Else $str.="pink"; $str.="><tr><td>".$value."</td></tr></table>"; $value=$str; |
|
|
|
paperhog author 8/27/2007 |
|
THANK YOU! |
|