Not sure why I'm getting this PHP warning message. It appears there are four parameters in the prepared statement, and also four variables in bind_param(). Thanks for any help!
if($stmt = $mysqli -> prepare("SELECT url, month, year, cover_image FROM back_issues ORDER BY year DESC, month DESC")) {
$stmt -> bind_param("ssis", $url, $month, $year, $cover_image);
$stmt -> execute();
$stmt -> bind_result($url, $month, $year, $cover_image);
$stmt -> fetch();
while ($stmt->fetch()) {
echo "<li class='item'><a href='$url'><img src='$cover_image' alt='$cover_image' width='' height='' /></a><br /><span class='monthIssue'>$month $year</span></li>";
}
$stmt -> close();
$mysqli -> close();
}
bind_param(), but have no placeholders