Bretticus, I hope you don't mean 'loop through and run 10 queries' :eek:
The easy way around this is to use the "INSERT .... VALUES (.....) ON DUPLICATE KEY UPDATE" syntax (requires version 4.1.1 or higher)
You would loop through the post data to build the query, then run 1 query to update all 10 rows.
// assuming you have used the autoID value as the name for the link textbox
$values = array();
foreach ($_POST as $key=>$val) {
$values[] = "(" . $key . ",'" . $val . "')";
}
$sql = "INSERT INTO link_table(autoID, link) VALUES " . implode(',' , $values) . " ON DUPLICATE KEY UPDATE";
PS, remember to clean the input with a mysql_real_escape_string function to protect yourself from sql injection attacks. I've not included it here so you can see what is going on more easily.