Is this the only code? It seems like your if/else statement is being broken. Is there additional code or hidden characters between the close of the if and the start of the else if statement?
Can you remove the php tags and seemingly blank line that separate them so you end up with } else if { to see if that fixes it?
Other then some divs for styling. That is it. and I tried you suggestion on the $image, but it did not work. Thanks for taking the time to look at it. For now, I just changed the "else if" to an "if".
only needs to be
$image = array_rand($images);
Can you remove the php tags and seemingly blank line that separate them so you end up with } else if { to see if that fixes it?
What I read