Re: Another simple question (Probably)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




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. 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.php


--
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@xxxxxxxxxx

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux