I'm trying to create two columns in HTML, inside of a PHP file.
This code runs fine by itself:
But when I add it to the PHP file like this:
I get: Parse error: syntax error, unexpected T_LNUMBER, expecting ',' or ';' in /- on line 8
Can anyone help me to get the columns to work correctly? Thank you.
This code runs fine by itself:
Code:
<center>
<table border="0" width="60%" cellpadding="0">
<tr>
<td width="50%" valign="top"><center>
This is some text. </td>
<td width="50%" valign="top"><center>
More text.
</td>
</tr>
</table>
But when I add it to the PHP file like this:
Code:
<?php
echo "<html>
<head>
<title>Columns</title>
</head>
<center>
<table border="0" width="60%" cellpadding="10">
<tr>
<td width="50%" valign="top"><center>
This is some text. </td>
<td width="50%" valign="top"><center>
Another text.
</td>
</tr>
</table>
</html>";
?>
I get: Parse error: syntax error, unexpected T_LNUMBER, expecting ',' or ';' in /- on line 8
Can anyone help me to get the columns to work correctly? Thank you.