joop
12-11-2004, 08:16 PM
Im trying to use a php class member function to output data to my screen but it doesn't accept the ' ; ' all the time (though this really is not on every occation).
Heres a pice of the relavent code.
$homepage->SetContent("<table width='100%' border='0' cellpadding='2' cellspacing='3'>
<tr>
<td width='100%' scope='col' valign='top' align='left'>
Let us begin with the simple framework required to successfully build a web page.<br><br>
<table align='center' border='1' class='sourceblue' >
<tr><td>
<blockquote>&lt;html&gt;
<p>&lt;head&gt;<br>
&lt;title &gt;<font color="#000000">My First Web Page</font>&lt;/title&gt;<br>
&lt;/head &gt;</p>
<p>&lt;body &gt;<br>
&lt;/body &gt;</p>
<p>&lt;/html &gt;
</p></blockquote></td></tr></table>
i recieve the error : Parse error: parse error, unexpected ';' in /home/sites/inciter.org.uk/public_html/html/html_firstpage.php on line 24
Do i need to use a switch to resolve this problem like the new line switch ' \n ' ?
Heres a pice of the relavent code.
$homepage->SetContent("<table width='100%' border='0' cellpadding='2' cellspacing='3'>
<tr>
<td width='100%' scope='col' valign='top' align='left'>
Let us begin with the simple framework required to successfully build a web page.<br><br>
<table align='center' border='1' class='sourceblue' >
<tr><td>
<blockquote>&lt;html&gt;
<p>&lt;head&gt;<br>
&lt;title &gt;<font color="#000000">My First Web Page</font>&lt;/title&gt;<br>
&lt;/head &gt;</p>
<p>&lt;body &gt;<br>
&lt;/body &gt;</p>
<p>&lt;/html &gt;
</p></blockquote></td></tr></table>
i recieve the error : Parse error: parse error, unexpected ';' in /home/sites/inciter.org.uk/public_html/html/html_firstpage.php on line 24
Do i need to use a switch to resolve this problem like the new line switch ' \n ' ?