hello, basically ive got a while loop which brings up bookings dates but i want to send a selected row to a table within the sql table but depending on, one specific field for instance if the name = "tom" i want to send it to the table called tom, i have three tables and three names.
I have got checkboxes so a user can select up2 2checkboxes once they click send it should send data to database im finding this task very difficult so if anybody could help i would be very grateful.
Here is my code;
// Loop through data and display
while($a_row = mysql_fetch_assoc($result))
echo "<tr>".
'<td style="color: black;"><input type="checkbox" name="bookings[]" value="'.$a_row.'"></td>'.
"<td style=\"color:Black\">".$a_row."</td>".
"<td style=\"color:Black\">".$a_row."</td>".
"<td style=\"color:Black\">".$a_row."</td>".
"<td style=\"color:Black\">".$a_row."</td>".
"<td style=\"color:Black\">".$a_row."</td>".
"<td style=\"color:Black\">".$a_row."</td>".
"<td style=\"color:Black\">".$a_row."</td>".
"<td style=\"color:Black\">".$a_row."</td></tr>";
// Close connection ! (please !)
mysql_close($connection);
?>
its all working results show but nothing happens when you click on checkboxes i have used id to make each row unique and i have id in the database table.
If any1 cud help, im really stuck on what 2do next cheers