Re: Another simple question (Probably)
| From: | clive | Date: | Mon, 09 Jul 2007 13:02:27 +0000 |
| Subject: | Re: Another simple question (Probably) | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-258494@lists.php.net to get a copy of this message | ||
Jason Pruim wrote:
Okay so given this section of code: $taskTime=mktime(00,00,00,$_POST['txtReschedule']);im not certain, but I dont think you can pass the date to mktime as 1 variable, the function requires the following mktime($hour, $minute,$second, $month , $day ,$year); so maybe you need to split up your posted variable clive
echo <<<HTML <tr>-- Regards, Clive. Real Time Travel Connections {No electrons were harmed in the creation, transmission or reading of this email. However, many were excited and some may well have enjoyed the experience.}<td bgcolor="{$rowColor}">ID#, {$row['id']} </td> <td bgcolor="{$rowColor}">TicklerName, {$row['task_name']} </td> <td bgcolor="{$rowColor}">Instructions, <a href='{$row['task_desc']}'>Instructions</a></td> <td bgcolor="{$dowColor}">DayOfWeekWord, {$dowword} </td> <td bgcolor="{$rowColor}">DateToReschedule, <input type='text' name='tasks[{$row['id']}][txtReschedule]' value=''></td> <td bgcolor="{$rowColor}">DateRescheduled, {$Date}</td> <td bgcolor="{$rowColor}"><a href='update.php?taskid={$row['id']}&taskdate={$taskdate}'>Click here!</a></td> <td bgcolor="{$rowColor}">CheckboxForWhenDone, <input type='checkbox' name='tasks[{$row['id']}][chkDone]' value='{$row['id']}'></td></tr> HTML; Why am I getting a time stamp of: 1165640400 Sat, Dec-09-06? I have been fighting with trying to figure this out and finally decided to show my ignorance of the language and ask for help :) Besides, the boss wants this done :) Jason <?PHPif($brain =="Monday"){ echo "Let me go home!" };?>