Re: Another simple question (Probably)
| From: | Jason Pruim | Date: | Tue, 10 Jul 2007 18:33:40 +0000 |
| Subject: | Re: Another simple question (Probably) | ||
| References: | 1 2 3 4 5 6 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-258563@lists.php.net to get a copy of this message | ||
On Jul 10, 2007, at 11:56 AM, Jim Lucas wrote:
Jason Pruim wrote:Okay, I think I see where you are going here, But my question is how can I set the date dynamically? The context that this is being used in is to store a date of the NEXT time the task is needing to be done. I'm also not sure why you have the "31", "39", "34", "36" numbers in there? Those are the database record number so I know which one to mark as completed :) Maybe a page is in order to make it make more sense, also, I'm willing to post all the code, but don't want to litter the list with a whole bunch of unnecessary info. HTTP://www.raoset.com/tests/ticklers/viewall.phphere is the print_r($_POST); Array ( [tasks] => Array ( [31] => Array ( [txtReschedule] => 07/07/08 [chkDone] => 31 ) [39] => Array ( [txtReschedule] => 07/08/08 [chkDone] => 39 ) [34] => Array ( [txtReschedule] => 07/09/09 [chkDone] => 34 ) [36] => Array ( [txtReschedule] => ) [35] => Array ( [txtReschedule] => ) [32] => Array ( [txtReschedule] => ) [33] => Array ( [txtReschedule] => ) [37] => Array ( [txtReschedule] => ) [38] => Array ( [txtReschedule] => ) ) )ok, then from this, I assume that you are checking to make sure that [chkDone] is set when you loop through the data. something like this should do the trick <pre><?php $tasks = array ( 31 => array( 'txtReschedule' => '07/07/08', 'chkDone' => 31 ) , 39 => array( 'txtReschedule' => '07/08/08', 'chkDone' => 39 ) , 34 => array( 'txtReschedule' => '07/09/09', 'chkDone' => 34 ) , 36 => array( 'txtReschedule' => '' ),
--Jim Lucas "Some men are born to greatness, some achieve greatness,-- Jason Pruim Raoset Inc. Technology Manager MQC Specialist 3251 132nd ave Holland, MI, 49424 www.raoset.com japruim@raoset.comand some have greatness thrust upon them."Twelfth Night, Act II, Scene Vby William Shakespeare