News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Problem with include

Started by Sir Osis of Liver, June 20, 2022, 10:20:01 PM

Previous topic - Next topic

Sir Osis of Liver

Have a slideshow running in board description, works fine.  When I try to add a second slideshow below it, get an empty div.  Running it with an include(), also tried include_once(), two different filenames, same result. 


if ($board['id'] == 98) {
echo '
<br /><div id="scroller">';
include_once('BoardIndex.scroller.php');
echo '
<br /><div id="scroller2" style="border: 1px red solid;">';
include_once('BoardIndex.scroller2.php');
}


Only first one works, second is empty box, right size in right place.



"The best laid schemes o' mice an' men / Gang aft a-gley." - Robert Burns

Advertisement: