retour sur la page login if(!$user->is_logged_in()) { header('Location: login.php'); } if(isset($_SESSION['userid'])) { if($_SESSION['userid'] != 1) { header('Location: '.SITEURL); } } // titre de la page $pagetitle= 'Admin : Edition des licences'; require('../includes/header.php'); ?>

Licences Index

Edition de la licence

prepare('UPDATE blog_licences SET licenceTitle = :licenceTitle, licenceSlug = :licenceSlug WHERE licenceID = :licenceID') ; $stmt->execute(array( ':licenceTitle' => $licenceTitle, ':licenceSlug' => $licenceSlug, ':licenceID' => $licenceID )); //redirect to index page header('Location: licences.php?action=updated'); exit; } catch(PDOException $e) { echo $e->getMessage(); } } } ?> '; } } try { $stmt = $db->prepare('SELECT licenceID, licenceTitle FROM blog_licences WHERE licenceID = :licenceID') ; $stmt->execute(array(':licenceID' => $_GET['id'])); $row = $stmt->fetch(); } catch(PDOException $e) { echo $e->getMessage(); } ?>
'>


'>