transmettre les donnees d'un formulaire vers mysql

PDO('mysql:host=localhost;dbname=cartes', 'root', ''); } catch(Exception $e) { echo 'Echec de la connexion à la base de données'; exit(); } if(isset($_POST['submit'])){ $nom= htmlspecialchars(trim($_POST['nom'])); $prenom

1
Suppression de multiples images

PDO ('mysql:host=localhost;dbname=amandineBDD;charset=utf8', 'root', ''); if(isset($_POST['id']) AND isset($_POST['path'])) { $path = $_POST['path']; foreach ($_POST['id'] as $id) { $sql = $bdd->prepare("DELETE FROM

1
Bouton suppresion

bool { $statement = $this->pdo->prepare('DELETE FROM events WHERE id= :id'); $statement->execute(array( ':id' => $_GET['id'] )); return $statement->execute(); header('Location:index.php'); } Pouvez-vous m'aider. Je vous remercie

1
sql select et condition if

PDO::FETCH_ASSOC)) { ?> .randoh5 {font-size: 17px;} .randoem {font-size: 13px;}

25
Galère totale Tableau Dynamique

PDO->__construct() #1 {main} thrown in C:\Users\aloriau\Documents\TutoPHP\index.php on line 4" Alors que dans la video il n'y a aucune erreur Si quelqun a la solution

6
Problème connexion bdd symfony 4.3

/xxxxxxxx Et j'obtiens l'erreur suivante : hôtes inconnu J'ai également fait des tests avec une simple connexion via PDO et celle-ci à très bien fonctionné. Merci d'avance, Robin.

1
Affichage d'une photo supprimée

pdo->prepare('UPDATE users SET avatar = :avatar, avatar_test = :id WHERE id = :id'); $updateavatar->execute(array( 'avatar' => $id_avatar.".".$extensionUpload, 'id' => $id_avatar )); header('Location: logbio.php'); }else{ $_SESSION['flash']['red2

2
Enregistrer un dossier en bdd dans une seule entrée ?

PDO('mysql:host=localhost;dbname=vacafiens', 'root', ''); } catch(Exception $e) { die('Erreur : '.$e->getMessage()); } $photos = $liste_image[$i]; $req = $bdd->prepare('INSERT INTO upload(photos)VALUES(:photos)'); $req->execute(array

10
portail web multi applicatif

PDO, css, gestion des authentifications , des sessions, des outils pour les dates ... etc ... ) Le tout marche plutôt bien et répond aux besoins. Néanmoins certains choix d'architecture répondaient aux connaissances

2
Insertion ciblée dans BDD

PDO::PARAM_STR); $executeIsOk = $pdoStat->execute(); } endforeach; ``` ### Ce que je veux Comme expliqué avant, dans mon tableau chaque colonne contient une URL avec à côté un bouton pour ajouter cette

16