To write some dates in the database in the desired format I'm doing this:
mysqli_stmt_bind_param
(
$stmt,
's',
date("Y-m-d", strtotime($data))
);
Or, to get the current day simply:
mysqli_stmt_bind_param
(
$stmt,
's',
date("Y-m-d")
);
However, although I write normally, I get this error ( notice )?:
Strict standards: Only variables should be passed by reference in line "5" // is in the date line ...
Is this wrong way to pass the value to the field? Which one is correct? What does this error mean?