--- a/edit.php Thu Dec 27 12:36:04 2007 +0000
+++ b/edit.php Sat Dec 29 14:42:34 2007 +0000
@@ -30,7 +30,7 @@
foreach ($_POST["rowid"] as $x_user => $x_value){
$x_userid = $db->queryOne("SELECT id FROM record_owners WHERE user_id = '".$_POST["userid"]."' AND record_id='".$x_value."'");
if (empty($x_userid)) {
- $db->query("INSERT INTO record_owners SET user_id = '".$_POST["userid"]."',record_id='".$x_value."'");
+ $db->query("INSERT INTO record_owners (user_id, record_id) VALUES ('".$_POST["userid"]."','".$x_value."')");
}
}
}