PDO::ERRMODE_EXCEPTION )); } catch (Exception $e) { die("Error : ".$e->getMessage()); } if (isset($_GET['id'])){ ?> Edit | Chiro - Canto

Edit

prepare('SELECT * FROM records WHERE id=:id'); $req->execute(array( "id"=>$_GET['id'] )); if ($data = $req->fetch()){ ?>