I am fairly new to PHP and SQL. I want to be able to assign a task to a certain user and the update that row in the database with the user's name assigned to that task. Here is my code:
<table border="0" width="1100px" style= "font-size: 12px" >
  <thead>
    <tr valign="top" align="left">
    <th height="20"></th>
      <th height="20">Customer</th>
      <th>Vehicle</th>
      <th>Appt Time</th>
      <th>Notes</th>
      <th>Assign</th>
      <th>Action</th>
      <tr><td valign="top" colspan="6"><hr><br></td></tr>
    </tr>
  </thead>
  <tbody>
    <?php
      while( $row = mysql_fetch_assoc( $result ) ){
        echo
        "<tr valign='center'>
          <td width='50'><b>{$row['id']}</td>
            <td width='220' height='70'><b>{$row['firstname']}
          </td>
          <td width='240'><b>{$row['car']}</b> <br>{$row['reg']}</td>
          <td width='170'>Monday<br>24 September<br>17:00</td>
          <td width='240'>{$row['notes']}<br><b>Status:</td>
          <td width='240'>
          <form action='bookings.php' method='post'>
          <select style='width:90px' class='reg' name='assign'required>
          <option value=''></option>
          <option value='User1'>User1</option>
          <option value='User2'>User2</option>
          <option value='User3'>User3</option>
          <option value='User4'>User4</option>
          <option value='User5'>User5</option>
         </select><input type='submit' value='>'  class='assignButton'/></form>
          </td><td>
          <button class='myButton'>Edit</button>
          </td>
          <tr><td colspan='6'><hr class='hrTitle'></td></tr>
        </tr>\n";
      }  
    ?>
  </tbody>
</table>
As you can see, I have a number of users that can be selected, I want to be able to assign that task to a user from the select list. Any help is much appreciated.
 
    