Ajouter une licence
prepare('INSERT INTO blog_licences (licenceTitle,licenceSlug) VALUES (:licenceTitle, :licenceSlug)') ; $stmt->execute(array( ':licenceTitle' => $licenceTitle, ':licenceSlug' => $licenceSlug )); //redirect to index page header('Location: licences.php?action=ajoute'); exit; } catch(PDOException $e) { echo $e->getMessage(); } } } //check for any errors if(isset($error)){ foreach($error as $error){ echo ''.$error.'
'; } } ?>