Hi everyone
I am trying to develop a table that displays all of the members of my site row by row with their first and last names and a button to delete them. On line 20 where I am trying to generate a form I get a parse error, unexpected T_STRING. I can not see why this is occuring, can anyone help me?
<tr>
<td width="780" colspan="4" border="1" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
<?PHP
$query = "select * from members";
$rs = mysql_query($query);
$list = "<table width=\"760\" colspan=\"4\" border=\"0\" cellpadding=\"2\" bgcolor=\"#FFFFFF\">";
$list .= "<tr><th>First Name</th>";
$list .= "<th>Last Name</tr>";
$list .= "<th>Delete</th></tr>";
while ( $row = mysql_fetch_array($rs))
{
$list .= "<tr>";
$list .= "<td>".$row["fname"]."</td>";
$list .= "<td>".$row["sname"]."</td>";
$list .= "<td> <form action="viewmembers.php" method="post">
<input type="submit" name="submit"> <input type="hidden" name="user"
value=".echo $row['memid']."> </form> </td>";
$list .= "</tr>";
}
$list .= "</table>";
echo ($list);
?>
</td>
</tr>