function templateMain($userMenuStr,$adminMenuStr,$userStatus, $navBarText,$infoText,$gorumcontent,$footer){ global $leftads; global $xi; $s=""; $s.="<center>"; $s.="<table border='1' cellpadding='0' cellspacing='0'". " width='100%'>"; $s.="<tr><td colspan='3'>". "<img src='$xi/b.gif' height='20'></td></tr>"; $s.="<tr>"; $s.="<td width='10%'>";//left side ads[b]$s.=include('ads/leftsideads.php');[/b] <-------------------------------------------Here is where I am trying to insert the include $s.="</td>";//left $s.="<td valign='top' align='center' width='80%'>"; $s.="<table border='0' cellpadding='0' cellspacing='0'>"; $s.="<tr><td><img src='$xi/headpic.gif' width='705' height='61'>"; $s.="</td></tr>"; $s.="<tr><td align='center'><h3>Proudly serving the men"; $s.=" and women in Camp Victory, Iraq"; $s.="</td></tr></table>\n"; $s.=vertSpacer(); $s.="<span class='userstatus'>$userStatus</span>\n"; $s.=vertSpacer("3"); $s.=$userMenuStr;//lot of code return $s;}
What ends up displaying is a 1 showing that it did execute the include, but I think it is executing it as soon as it reaches that part, instead of waiting until $s. is returned. The file does get displayed just on top of the table instead of inside that cell.