Well, Im new to this whole thing of PHP, so, be patient with me :p
Ok, I have a database with records, and I show these records in a Table with this code:
echo "<table border='1'>
<tr>
<th>Name</th>
<th>Department</th>
<th>Login</th>
<th>Employee ID</th>
<th>Active</th>
</tr>";while($row = mysql_fetch_array($result))
{
echo "<tr>";
echo "<td>" . $row['name'] . "</td>";
echo "<td>" . $row['department'] . "</td>";
echo "<td>" . $row['login'] . "</td>";
echo "<td>" . $row['employee_id'] . "</td>";
echo "<td>" . $row['active'] . "</td>";
echo "</tr>";
}
echo "</table>";mysql_close($con);
I have three buttons after this code (add, delete and edit).
I want to be able to select one row of the table, and send the data in the cells to another php file when I click Edit or Delete, but I have no idea on how to do this. If you have any idea or some help, that would be great. I dont know if I explain this in a good way, if not, I'll try to do it in a better way.
So, thx in advance.