Keep getting a parse error only when I insert this If statement into my function. I marked the line in the error code by a *. I appologize for the structure, and the poorly made code. I'm new, so still learning. Thanks in advanced!
Parse error: parse error, unexpected '{'
Function album_display($link_num) {
global $album_start;
global $full_link;
*global $album_menu;
$l = $link_num + album_start;
if (isset($album_menu[$l]) {
$first_link = '<a href="./mytest.php?album_select=';
$second_link = ',album_start=';
$third_link = '" STYLE="TEXT-DECORATION: NONE">';
$fourth_link = '</a></font></div>';
$full_link = $first_link.$album_menu[$l].$second_link.$album_start.$third_link.$album_menu[$l].$fourth_link;
echo "$full_link";
} else {
echo '</div>';
}
}