| 1 |
<?php |
<?php |
| 2 |
// $Id: boost.module,v 1.3.2.2.2.5.2.246 2009/11/11 08:14:03 mikeytown2 Exp $ |
// $Id: boost.module,v 1.3.2.2.2.5.2.247 2009/11/13 23:07:32 mikeytown2 Exp $ |
| 3 |
|
|
| 4 |
/** |
/** |
| 5 |
* @file |
* @file |
| 3482 |
} |
} |
| 3483 |
// Build the fields part of this query |
// Build the fields part of this query |
| 3484 |
$fields = implode(', ', $fields); |
$fields = implode(', ', $fields); |
| 3485 |
$query = "INSERT INTO {$table} ($fields) VALUES $v"; |
$query = "INSERT INTO {" . $table . "} ($fields) VALUES $v"; |
| 3486 |
// Run the query |
// Run the query |
| 3487 |
if ($suppress) { |
if ($suppress) { |
| 3488 |
return @db_query($query, $data); |
return @db_query($query, $data); |
| 3518 |
$in .= ', ' . $placeholder; |
$in .= ', ' . $placeholder; |
| 3519 |
} |
} |
| 3520 |
// Build the query |
// Build the query |
| 3521 |
$query = "DELETE FROM {$table} WHERE $field IN ($in)"; |
$query = "DELETE FROM {" . $table . "} WHERE $field IN ($in)"; |
| 3522 |
// Run the query |
// Run the query |
| 3523 |
return db_query($query, $data); |
return db_query($query, $data); |
| 3524 |
} |
} |
| 3558 |
$in .= ', ' . $where_placeholder; |
$in .= ', ' . $where_placeholder; |
| 3559 |
} |
} |
| 3560 |
// Build the query |
// Build the query |
| 3561 |
$query = "UPDATE {$table} SET $set_field = $set_placeholders WHERE $where_field IN ($in)"; |
$query = "UPDATE {" . $table . "} SET $set_field = $set_placeholders WHERE $where_field IN ($in)"; |
| 3562 |
// Add the set value to the top of the array |
// Add the set value to the top of the array |
| 3563 |
array_unshift($data, $set_value); |
array_unshift($data, $set_value); |
| 3564 |
// Run the query |
// Run the query |
| 3592 |
$in .= ', ' . $placeholder; |
$in .= ', ' . $placeholder; |
| 3593 |
} |
} |
| 3594 |
// Build the query |
// Build the query |
| 3595 |
$query = "SELECT * FROM {$table} WHERE $field IN ($in)"; |
$query = "SELECT * FROM {" . $table . "} WHERE $field IN ($in)"; |
| 3596 |
// Run the query |
// Run the query |
| 3597 |
return db_query($query, $data); |
return db_query($query, $data); |
| 3598 |
} |
} |