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();
}
?>