What does the error mean? I need to know to fix it.
Warning: mktime() expects parameter 1 to be long, string given in /file.php on line 328
Warning: Cannot modify header information - headers already sent by (file.php:328) in file.php on line 483
Here's line 328 $date2 = mktime($tmpTime[0],$tmpTime[1],$tmpTime[2],$tmpDate[1],$tmpDate[2],$tmpDate[0]);
Here's line 483 header("Location:../file.php?Err=1");
---------- Post added at 05:21 PM ---------- Previous post was at 05:03 PM ----------
Here's some more if this will help
$insertime=$row_list['dateCreated'];
}
$date1 = time();
$dat = explode(" ",$insertime);
$tmpDate = explode("-", $dat[0]);
$tmpTime = explode(":", $dat[1]);
$date2 = mktime($tmpTime[0],$tmpTime[1],$tmpTime[2],$tmpDate[1],$tmpDate[2],$tmpDate[0]);
$dateDiff = $date1 - $date2;
$fullMinutes = floor(($dateDiff-($fullDays*60*60*24)-($fullHours*60*60))/60);
$query = "SELECT minutes FROM user_register WHERE id='$user_id'";
$q2=mysql_query($query) or die(mysql_error());
$minutes=mysql_fetch_array($q2);
if($fullMinutes > ((int)$minutes[0])&& $minutes[0]!='0') {
---------- Post added at 05:30 PM ---------- Previous post was at 05:21 PM ----------
Someone suggested to change it to :
$date2 = mktime((int)$tmpTime[0],(int)$tmpTime[1],(int)$tmpTime[2],$tmpDate[1],$tmpDate[2],$tmpDate[0]);
Good?