Commit 90f26a38 authored by Estéban Ristich's avatar Estéban Ristich
Browse files

Rename SQL intervention function

parent 5c6d1590
......@@ -22,7 +22,7 @@ if ($mode == 'Ajouter') {
en_tete('Ajouter une intervention');
} else if ($mode == 'Modifier') {
en_tete('Modifier une intervention');
$intervention_fetch = get_interventions_listall_by_equipment($pdo, $equipment_id);
$intervention_fetch = get_interventions_all_by_equipment($pdo, $equipment_id);
}
?>
......
......@@ -142,7 +142,7 @@ function check_val_in_db($pdo, $table, $col, $value) {
*
* @return false|array
*/
function get_interventions_listall_by_equipment($pdo, $equipment_id) {
function get_interventions_all_by_equipment($pdo, $equipment_id) {
$sql = 'SELECT * FROM interventions WHERE f_listing = ?;';
$stmt = $pdo->prepare($sql);
$stmt->execute(array($equipment_id));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment