<!DOCTYPE html>
<html>
<head>
<title>Dolgozók felvitele</title>
<meta charset="UTF-8">
<link rel="stylesheet" href="urlapcss.css" type="text/css">
</head>
<body>
<div id="container">
<form id="reg" action="felvitel1.php" method="post">
<fieldset>
<legend>Dolgozók</legend>
<ol>
<li>
<label for="username1">Név<em>*</em></label>
<input id="username1" type="text" name="username1"/>
</li><li>
<label for="address">E-mail<em>*</em></label>
<input id="address" type="text" name="address" />
</li>
</ol>
</fieldset>
<input type="submit" value="OK"/>
<a href="fooldal.html">Vissza</a>
</form>
</div>
<?php
$result3 = mysql_query("SELECT * FROM Dolgozók");
echo '<br><br><table id="table">';
echo'<th>ID</th><th>Név</th><th>E-mail</th><th>Edit</th>';
while($row = mysql_fetch_array($result3))
{
echo'<tr>';
echo '<td>'.$row['ID']. '</td>' ;
echo '<td>'.$row['Name'].'</td>';
echo '<td>'.$row['Email'].'</td>';
echo '<td>'. "<input class='submit' type='submit' name='submit' value='update' />". '</td>';
echo'</tr>';
}
echo '</table>';
?>
</body>
</html>
Please help me, I want to edit rows in this table, and I don't know how can I do this. Thank you! Maybe should I create an another php file for edit or use javascript? Let me know if you know the best way to solve this problem.