Attaque d'une bd avec la balise select
Fermé
anicetpatrick
Messages postés
41
Date d'inscription
lundi 10 janvier 2005
Statut
Membre
Dernière intervention
2 juin 2007
-
19 sept. 2005 à 12:39
anicetpatrick Messages postés 41 Date d'inscription lundi 10 janvier 2005 Statut Membre Dernière intervention 2 juin 2007 - 19 sept. 2005 à 13:37
anicetpatrick Messages postés 41 Date d'inscription lundi 10 janvier 2005 Statut Membre Dernière intervention 2 juin 2007 - 19 sept. 2005 à 13:37
A voir également:
- Attaque d'une bd avec la balise select
- Reboot and select proper boot device - Forum Windows
- Scan bd ✓ - Forum Loisirs / Divertissements
- Balise br ✓ - Forum Webmastering
- W.i.t.c.h. bd intégrale pdf ✓ - Forum Loisirs / Divertissements
- Please select boot device - Forum Matériel informatique
3 réponses
sebsauvage
Messages postés
32847
Date d'inscription
mercredi 29 août 2001
Statut
Modérateur
Dernière intervention
21 octobre 2019
15 656
19 sept. 2005 à 13:17
19 sept. 2005 à 13:17
"select" c'est du SQL.
Voir:
http://www.commentcamarche.net/sql/sqlintro.php3
http://www.commentcamarche.net/ccmdoc/index.php3?cat=104
et
http://sqlpro.developpez.com/indexSQL.html
Voir:
http://www.commentcamarche.net/sql/sqlintro.php3
http://www.commentcamarche.net/ccmdoc/index.php3?cat=104
et
http://sqlpro.developpez.com/indexSQL.html
bonjour
pour cela tu crée ton select etc...
cette variable tu la recupere sur une page PHP (la page que renvoi ton post select ) avec:
ex:
index.html
<form method="post" action="enregistrement2.php">
Race:<select name="matiere">
<option value="math">math</option>
<option value="anglais">anglais</option>
</select>
enregistement2.php:
<?php
$matiere = AddSlashes (htmlspecialchars($_POST['matiere']));
///tu poura executer ta requet avec la commande:
$reponce=mysql_query("SELECT * FROM document WHERE matiere=$matiere");
while($donnees= mysql_fetch_array($reponse))
{
echo $donnees['nom_doc']; // par exemple
}// pas oublier de fermé }
?>
j espere t avoir aidé
trysac
pour cela tu crée ton select etc...
cette variable tu la recupere sur une page PHP (la page que renvoi ton post select ) avec:
ex:
index.html
<form method="post" action="enregistrement2.php">
Race:<select name="matiere">
<option value="math">math</option>
<option value="anglais">anglais</option>
</select>
enregistement2.php:
<?php
$matiere = AddSlashes (htmlspecialchars($_POST['matiere']));
///tu poura executer ta requet avec la commande:
$reponce=mysql_query("SELECT * FROM document WHERE matiere=$matiere");
while($donnees= mysql_fetch_array($reponse))
{
echo $donnees['nom_doc']; // par exemple
}// pas oublier de fermé }
?>
j espere t avoir aidé
trysac
anicetpatrick
Messages postés
41
Date d'inscription
lundi 10 janvier 2005
Statut
Membre
Dernière intervention
2 juin 2007
19 sept. 2005 à 13:37
19 sept. 2005 à 13:37
merci bien trysac, je pense que ton code mes sera d'une tres grande utilité et bien des choses a toi. a+