Parse error: syntax error, unexpected '?'
<p>I have code that is supposed to select all of the rows of data from a database, and echo them all into a checkbox for for deletion. But for some reason it won't work. I keep getting the error: Parse error: syntax error, unexpected '?' in \delete.php on line 13</p>

<p>My code is:</p>

<pre><code>&lt;form method="post" action="&lt;?php $_SERVER['PHP_SELF']; ?&gt;"&gt;

&lt;?php

$connect= mysqli_connect("localhost", "root", "", "friends_list");

$query= "SELECT * FROM people";

$result= mysqli_query($connect, $query);

while ($row= mysqli_fetch_array($result)) 
{
echo '&lt;input type="checkbox" value=" '&lt;?php echo $row['id']; ?&gt;'"        name="todelete[]"/&gt;' . 
echo $row['first_name'] . ' ' . $row['last_name'] . ' ' . $row['age'] . '&lt;br/&gt;';

}

mysqli_close($connect);

?&gt;

&lt;input type="submit" value="remove" name="remove"/&gt;

&lt;/form&gt;
</code></pre>

<p>What am I doing wrong?</p>
