T
|
thesofa 8/10/2008 |
Hi |
S
|
swanside author 8/10/2008 |
Hi quite a few posts about date and time on here, try this reply of mine posted today that has links to 2 posts that may help. sql and php deal with dates in a non logical way, I think they are stored as a unix timestamp so the number needs to be converted to a readable date. HTH
|
T
|
thesofa 8/10/2008 |
I tried this echo now();
|
S
|
swanside author 8/10/2008 |
Thats funny, that means my query is adding 30 years onto my database???? |
T
|
thesofa 8/10/2008 |
thats what happened when I tried it, you have the code, just run it from a page! |
S
|
swanside author 8/11/2008 |
Tried a few different things, but they dont seem to work, I either get one cell red and that dont change colour whayever I do, or, I get a big long PHP Error messege. |
T
|
thesofa 8/11/2008 |
sorry, unable to help anymore out of my range, ask Jane or Alexy. |
J
|
Jane 8/11/2008 |
Hi, |
S
|
swanside author 8/11/2008 |
Hi, field value is stored in the $value variable or in the global $data array. Your Order_Date means nothing. Also I recommend you to use PHP functions to compare dates: http://php.net/manual/en/ref.datetime.php
|
S
|
swanside author 8/11/2008 |
No I am lost. I think I need to google now! Its like a new language.
|
T
|
thesofa 8/11/2008 |
just have a good sleep! |
S
|
swanside author 8/11/2008 |
just have a good sleep!
|
S
|
swanside author 8/11/2008 |
OK, been reading on varibles, seem to be getting abit of it now, but, how do I tell a variable that the information I want it to read is in a field called Order_Date? $strFirst_Name = "David";
|
T
|
thesofa 8/11/2008 |
assign a variable a value like this
$strDate=$values["Order_Date"];
$strFirst_Name = "David";
global $conn, $strTableName;
|