aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'php/lib/list.php')
-rw-r--r--php/lib/list.php26
1 files changed, 0 insertions, 26 deletions
diff --git a/php/lib/list.php b/php/lib/list.php
index 5deb5e9..c7e872b 100644
--- a/php/lib/list.php
+++ b/php/lib/list.php
@@ -363,29 +363,3 @@ function list_edit_ids($name,$form,$q_front,$q_where='1',$dates=null,$datetimes=
echo '<p>You must select a record. <a href="javascript:history.back();">Go back</a>.</p>';
}
}
-
-/**
- * Process a submitted list_edit_ids form.
- * @param array $name array of primary ids posted from the form, these are vital to the WHERE clause of the UPDATE statements.
- * @param string $table name of table being affected
- */
-function list_update_ids($name,$table)
-{
- $keys=array_keys($_POST[$name]);
- foreach ($keys as $index)
- {
- foreach ($_POST as $key=>$val)
- {
- if ($key!='submit')
- {
- $posts[$index][$key]=$val[$index];
- }
- }
- }
- foreach ($posts as $dataset)
- {
- $query=db_makeupdate($dataset,$table," WHERE $name='".$dataset[$name]."' ");
- db_query($query);
- }
-}
-?>