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 catégories'; require('../includes/header.php'); ?>

Catégories Index

Edition de la catégorie

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


'>