Re: Another simple question (Probably)

From: Date: Tue, 10 Jul 2007 19:25:36 +0000
Subject: Re: Another simple question (Probably)
References: 1 2 3 4 5 6 7  Groups: php.general 
Request: Send a blank email to php-general+get-258567@lists.php.net to get a copy of this message
Jason Pruim wrote:
On Jul 10, 2007, at 11:56 AM, Jim Lucas wrote:
Jason Pruim wrote:
here 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' => '' ),
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. This is just information that you submit from your form. I just used static information instead.
I'm also
not sure why you have the "31", "39", "34", "36" numbers in there? because that is the data that you posted from your print_r($_POST) that I asked for
I reformatted it to understand the structure of it. Those
are the database record number so I know which one to mark as completed :) np
Maybe a page is in order to make it make more sense, also, Would be good
I'm willing
to post all the code, but don't want to litter the list with a whole bunch of unnecessary info. Not needed.
HTTP://www.raoset.com/tests/ticklers/viewall.php Not sure what I am looking for. Is the "Day to complete" column the one that needs to have the date entered into it formatted as mm/dd/yy ?
--Jim Lucas "Some men are born to greatness, some achieve greatness,
       and some have greatness thrust upon them."
Twelfth Night, Act II, Scene V
    by William Shakespeare
-- Jason Pruim Raoset Inc. Technology Manager MQC Specialist 3251 132nd ave Holland, MI, 49424 www.raoset.com japruim@raoset.com
-- Jim Lucas "Some men are born to greatness, some achieve greatness, and some have greatness thrust upon them." Twelfth Night, Act II, Scene V by William Shakespeare

« previous php.general (#258567) next »