Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Lionel Ferrafiat
RIE-2017-ProjetTutore-G1
Commits
560c44d9
Commit
560c44d9
authored
Dec 14, 2018
by
Romain Benit
🥇
Browse files
Modification nom de variable pour le mot de passe de topic
parent
d5816a6f
Changes
2
Hide whitespace changes
Inline
Side-by-side
SiteWeb/html/producteur.php
View file @
560c44d9
...
@@ -48,7 +48,7 @@ session_start();
...
@@ -48,7 +48,7 @@ session_start();
$nom_topic
=
$_SESSION
[
'login'
]
.
"_"
.
time
();
$nom_topic
=
$_SESSION
[
'login'
]
.
"_"
.
time
();
// Création du password pour la lecture du topic
// Création du password pour la lecture du topic
$pass
=
genpass
();
$pass
wd
=
genpass
();
// Afficher les erreurs à l'écran
// Afficher les erreurs à l'écran
ini_set
(
'display_errors'
,
1
);
ini_set
(
'display_errors'
,
1
);
...
...
SiteWeb/html/topics_bdd.php
View file @
560c44d9
...
@@ -19,7 +19,7 @@
...
@@ -19,7 +19,7 @@
$req
=
$connexion
->
prepare
(
'INSERT INTO topics(topics, password) VALUES(:topics, :password)'
);
$req
=
$connexion
->
prepare
(
'INSERT INTO topics(topics, password) VALUES(:topics, :password)'
);
$req
->
execute
(
array
(
$req
->
execute
(
array
(
'topics'
=>
$nom_topic
,
'topics'
=>
$nom_topic
,
'password'
=>
$pass
'password'
=>
$pass
wd
));
));
?>
?>
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment