E-Junkie Forum http://www.e-junkie.com/bb/ E-Junkie Forum RSS en-us Copyright 2008, 19.5 Degrees. All rights reserved. webmaster@e-junkie.com webmaster@e-junkie.com Sun, 4 Nov 2007 19:08:31 GMT Tue, 14 Oct 2008 19:44:37 GMT 681 E-JUNKIE 5 E-Junkie Forum http://www.e-junkie.com/bb/ http://www.e-junkie.com/ej/logo.gif 290 104 Post #2 http://www.e-junkie.com/bb/topic/491/pg/0#post1115 http://www.e-junkie.com/bb/topic/491/pg/0#post1115 Sun, 4 Nov 2007 19:08:31 GMT
<?php

$payment_date=date("Y-m-d H:i:s",strtotime($payment_date));

?>

mc_gross should be decimal (9,2)]]>
E-junkie Discussions; E-junkieChef
Post #1 http://www.e-junkie.com/bb/topic/491/pg/0#post1115 http://www.e-junkie.com/bb/topic/491/pg/0#post1115 Sun, 4 Nov 2007 17:52:01 GMT
I've had mixed results with date. Here are two recent entries using the field type i mentioned above:

0000-00-00 00:00:00
2006-09-16 00:00:00

These were both sold and entered into the table sometime early this morning.....

My mc_gross field is showing up as just the first digit of a price like $x.xx. So one value has been 4 and the other has been 9.....and they should have been 4.99 and 9.99 (or something similar).

Anyone know which data types i should be using for these fields in my table to accurately capture the data?]]>
E-junkie Discussions; Cheese