both of my codes have
Parse error: syntax error, unexpected end of file
how can I solve. Im just a student, this is a homework. sorry if theres too much mistake tho , still learning.
UPDATE CODE:
<?php include "dbConfig.php";
error_reporting(E_ALL);
$msg = "";
$db_id=$_POST['db_id'];
$sql="SELECT * FROM registry WHERE db_id='$db_id'";
$result=mysql_query($sql);
$count=mysql_num_rows($result);
<?php
while($rows=mysql_fetch_array($result)){
?>
<?php
DELETE CODE:
<?php include "dbConfig.php";
error_reporting(E_ALL);
$msg = "";
if(isset($_POST['Submit'])){
$db_id = $_GET['db_id'];
$sql = mysql_query("DELETE from registry WHERE db_id
='$db_id',db name = '$name', db_age = '$age', db_gender = '$gender',
db_birthdate = '$bdate', db_phone = '$phone', db_address = '$address'");
if($sql > 0)
{
echo"record successfully deleted";
}
else
{
echo "error in deleting";
}
?>
<div id='cssmenu'>
<ul>
<li class='active'><a href='home.php'><span>Home</span></a>
</li>
<li><a href='save.php'><span>Save</span></a></li>
<li><a href='update.php'><span>Update</span></a></li>
<li class='last'><a href='delete.php'><span>Delete</span></a>
</li>
</ul>
</div>
<form name="frmregister"action="<?php echo $_SERVER['PHP_SELF']?>"
method="post" >
<table class="form" border="0">
<tr>
<td></td>
<td style="color:red;">
<?php echo $msg; ?></td>
</tr>
<tr>
<th><label for="name"><strong>Employee ID:</strong></label></th>
<td><input name = "db_id" type = "text" id = "db_id" size="30"
/></td>
</tr>
<td class="button">
<a href="delete.php?id=<?php echo $row['db_id'] ?>"><input type="button"
name="delete" value="Delete"></a>
</td>
</table>
</form>
</body>
</html>