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