function stockMdp($co, $mdp, $numCli) { $co = connexionSql(); $req = "INSERT INTO utilisateur VALUES ('" . $numCli . "', '" . $mdp . "')"; $res = requeteExe($co, $req); }
<?php include '../outils/outilsSql.php'; connexionSql(); ?> <!doctype html> <html lang=''> <head> <meta charset='utf-8'> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="style.css"> <title>accueil</title> <script type="text/javascript"> function switchInfoPerso() { divInfo = document.getElementById('divacacher'); if (divInfo.style.display == 'none') divInfo.style.display = 'block'; else divInfo.style.display = 'none'; } </script> </head> <body class = "site"> <header> <div id="titre">
<?php include "outilsSql.php"; $id = "jambon"; $test = "fromage"; $hash = hashMdp($test); $co = connexionSql(); $sql = "INSERT INTO utilisateur VALUES ('" . $id . "', '" . $hash . "')"; $res = requeteExe($co, $sql);