So my PHP displays a MySQL table, I'm aware you can tyle these which I plan to. But as the image below shows, the add button adds another column.
Is it possible to make the add button below the two columns update and delete? If so how can I do this. Here is my code, sorry for any errors or being messy, I'm still learning.
while ($record = mysql_fetch_array($myData)) {
echo "<form action=usermanagement.php method=post>";
echo "<tr>";
echo "<td>" . "<input type=text name=id value=" . $record['ID'] . " </td>";
echo "<td>" . "<input type=text name=rank value=" . $record['Rank'] . " </td>";
echo "<td>" . "<input type=text name=username value=" . $record['Username'] . " </td>";
echo "<td>" . "<input type=text name=password value=" . $record['Password'] . " </td>";
echo "<td>" . "<input type=hidden name=hidden value=" . $record['ID'] . " </td>";
echo "<td>" . "<input type=submit name=update value=update" . " </td>";
echo "<td>" . "<input type=submit name=delete value=delete" . " </td>";
echo "</tr>";
echo "</form>";
}
echo "<form action=usermanagement.php method=post>";
echo "<tr>";
echo "<td><input type=text name=uid></td>";
echo "<td><input type=text name=urank></td>";
echo "<td><input type=text name=uusername></td>";
echo "<td><input type=text name=upassword></td>";
echo "<td>" . "<input type=submit name=add value=add" . " </td>";
echo "</form>";
echo "</table>";