I've cut the below down as much as possible, I'm trying to echo the results from a table as values in a form, now, this works, but whatever I do it generates an annoying parse error, if anyone can help me eliminate that I'd appreciate it.
I have looked at the manual and tried both ways, the other being brackets, opening at the : and closing before or after (ie tried both ways) the endwhile;
Nothing seems to work!
$recruiter is chosen from a different form above to select which record to display.
$submitid is the name of the previous form
<?php
if ($submitid)
{
include "connect.inc";
$accept=mysql_query("SELECT * FROM tablename WHERE id=$recruiter",$db);
while($mrows=mysql_fetch_array($accept)):
?>
<form action="<?php echo($PHP_SELF); ?>" method=post>
<table border="0" cellspacing="0" cellborder="0">
<tr>
<td bgcolor="a0c544">First Name: </td><td><input type="text" name="firstname" size="15" maxlength="20" value="<?php echo $mrows["firstname"] ?>"></td>
</table>
<br>
<input type="submit" name="submit" value="submit">
</form>
<?php
endwhile;
?>
Thanks a lot for any help!