Jump to content

Radzy

New Members
  • Posts

    1
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

Radzy's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Need help with a coding issue ... Error reported: Warning: mktime() expects parameter 6 to be long, string given in c:\mywebsite.com\rating-review\includes\functions.php on line 320 This is the following code I'm using: function ifUpdated ($date) { global $def_updated; $date_day = date ( "d" ); $date_month = date ( "m" ); $date_year = date ( "Y" ); list ( $on_year, $on_month, $on_day ) = split ( '[/.-]', $date ); $first_date = mktime ( 0,0,0,$on_month,$on_day,$on_year ); $second_date = mktime ( 0,0,0,$date_month,$date_day,$date_year ); if ( $second_date > $first_date ) { $days = $second_date - $first_date; } else { $days = $first_date - $second_date; } $current_result = ( $days ) / ( 60 * 60 * 24 ); if ( $current_result <= 5 ) { $updated_listing = "$def_updated"; } else { $updated_listing = ""; } return $updated_listing; } I'm pulling my hair out trying to figure what's wrong.. maybe something simple.. thnks for help .. in advance
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.