SitePoint Sponsor

User Tag List

Results 1 to 6 of 6
  1. #1
    SitePoint Zealot cachobong's Avatar
    Join Date
    Jan 2005
    Location
    cebu
    Posts
    173
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Exclamation what does this error mean?

    Code:
    Warning: strtotime() [function.strtotime]: Called with an empty time parameter. in C:\Apache\xampp\htdocs\adtrs\date.php on line 60
    ]

    is used this

    PHP Code:
    $xtimein strtotime('H:i',strtotime($dtrd['timein'])); 
    or this:

    PHP Code:
    $xtimein strtotime($dtrd['timein']); 
    it still doesnt work. even if $dtrd['timein'] has somthing in it

  2. #2
    SitePoint Wizard silver trophy someonewhois's Avatar
    Join Date
    Jan 2002
    Location
    Canada
    Posts
    6,364
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You'll want the second usage. What's $dtrd['timein'] set to when you get that error?

  3. #3
    SitePoint Zealot cachobong's Avatar
    Join Date
    Jan 2005
    Location
    cebu
    Posts
    173
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    $dtrd['timein'] is set to 08:00, a string

  4. #4
    SitePoint Wizard silver trophy someonewhois's Avatar
    Join Date
    Jan 2002
    Location
    Canada
    Posts
    6,364
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    And what are you trying to accomplish?

  5. #5
    SitePoint Zealot cachobong's Avatar
    Join Date
    Jan 2005
    Location
    cebu
    Posts
    173
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    i want it to be equal to that is already in time format so that i can subtract it from another time.

  6. #6
    SitePoint Guru defiance's Avatar
    Join Date
    Oct 2004
    Location
    United states
    Posts
    663
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    timestamp?


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •