Browse Source

removed deprecated functions

master
n0m1s 10 years ago
parent
commit
c98c60c604
1 changed files with 0 additions and 26 deletions
  1. +0
    -26
      databaseOperations.php

+ 0
- 26
databaseOperations.php View File

@ -188,30 +188,4 @@ function getEventsSince($db,$date)
die(); die();
} }
} }
/**
* @deprecated
*/
function getEvents()
{
//FUTURE: delete this function
$pdo = connect();
$stmt = $pdo->prepare('SELECT titre, localisation, dtstart, dtend, description, url FROM events, categorie WHERE events.categorie = categorie.id');
$stmt->execute();
$result = $stmt->fetchAll();
return $result;
}
/**
* @deprecated
*/
function getEvent($id)
{
//FUTURE: delete this function
$pdo = connect();
$stmt = $pdo->prepare('SELECT titre, localisation, dtstart, dtend, description, url FROM events WHERE id = ?');
$stmt->execute(array($id));
$result = $stmt->fetch();
return $result;
}
?> ?>

Loading…
Cancel
Save