Exemple #1
0
function photos_delete($id)
{
    $db = site_db();
    $sql = "delete from photos where id=?";
    $st = $db->prepare($sql);
    $st->execute(array($id));
    $db = null;
}
Exemple #2
0
function view_lab()
{
    $db = site_db();
    $sql = "Select * from laboratory";
    $st = $db->prepare($sql);
    $st->execute();
    $rows = $st->fetchAll();
    $db = null;
    return $rows;
}