I've been looking at this for hours and am getting ready to give up. I'm getting an unexpected 'echo' (T_ECHO) error. I know this means I have misused/misplaced echo so I have tried numerous combinations of quotes to figure it out, but alas I have failed. Here is my code:
while($row = mysqli_fetch_array($result)){
$img = '<img src="/upload/"' . echo $row['image'] . '"/>';
printf('<li id="page_%s">%s</li>', $row['Item_ID'], $img);
}
Please help!