FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » problem saving date fields
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: problem saving date fields [message #174138 is a reply to message #174136] Sun, 22 May 2011 21:28 Go to previous messageGo to previous message
Jerry Stuckle is currently offline  Jerry Stuckle
Messages: 2598
Registered: September 2010
Karma:
Senior Member
On 5/22/2011 5:20 PM, Co wrote:
> On 22 mei, 01:55, Jerry Stuckle<jstuck...@attglobal.net> wrote:
>> On 5/21/2011 11:07 AM, Co wrote:
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>> On 21 mei, 16:37, Jerry Stuckle<jstuck...@attglobal.net> wrote:
>>>> On 5/21/2011 3:18 AM, Co wrote:
>>
>>>> > On 21 mei, 08:47, Co<vonclausow...@gmail.com> wrote:
>>
>>>> >> Did some testing with the print command.
>>>> >> When I update the dates these are the results.
>>
>>>> >> when I change departure:
>>>> >> arrival 2009-0120 departure 11-07-01
>>
>>>> >> when I change arrival:
>>>> >> arrival 2009-07-01 departure 2011-01
>>
>>>> >> it doesn't make any sense to me.
>>
>>>> >> Marco
>>
>>>> > After some more testing I figured out that the month value of the date
>>>> > which is not
>>>> > updated makes the date go corrupt (set to default). So someone the
>>>> > month value doesn't get read
>>>> > well from the $_POST['departure_month'].
>>
>>>> > Any thoughts.
>>
>>>> > MArco
>>
>>>> What's in your $_POST array?
>>
>>>> print_var($_POST);
>>
>>> Well basically when I change one of the dates; the one changed is
>>> fine.
>>> The other one untouched will only return the day and the year.
>>> Something like this: 122009.
>>> This doesn't happen when I change any other field; leaving the dates
>>> unchanged.
>>
>>> Marco
>>
>> That doesn't answer my question.
>>
>> If you want help, you need to answer our questions.
>>
>> --
>> ==================
>> Remove the "x" from my email address
>> Jerry Stuckle
>> JDS Computer Training Corp.
>> jstuck...@attglobal.net
>> ==================
>
> No you are right Jerry.
> Problem is my program doesn't know the command print_var($POST);
>
> Marco

My mistake - should be print_r(). Sorry.

And the value is $_POST, not $POST.

print_r() and var_dump() are both good debugging tools to help you.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex(at)attglobal(dot)net
==================
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: is dis da place?
Next Topic: foreach in reverse
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Fri Sep 20 12:37:57 GMT 2024

Total time taken to generate the page: 0.05113 seconds