1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
| <html>
<title>Résultat des recherches pour les modifications des publications</title>
<body>
<big><big><big><big>Veuillez faire votre choix Parmis les résulats<small><small><small><small><br><br>
<?php
define("SERVEUR","localhost");
define("LOGIN","root");
define("MDP","");
define("MABASE","dbleom");
//connexion au serveur de BD MySql
$connexion=mysql_connect(SERVEUR,LOGIN,MDP);
//connexion a la base de donnée
mysql_select_db(MABASE,$connexion);
$auteur=$_POST["auteur"];
$anne=$_POST["année"];
$anne2=$_POST["année2"];
$type=$_POST["type"];
$motclef1=$_POST["motclef1"];
$motclef2=$_POST["motclef2"];
$motclef3=$_POST["motclef3"];
$motclef4=$_POST["motclef4"];
$req1 = "SELECT *
FROM publi_publications
WHERE type='$type'
OR auteur1='$auteur'
OR titre LIKE '%$motclef1%'
OR titre LIKE '%$motclef2%'
OR titre LIKE '%$motclef3%'
OR titre LIKE '%$motclef4%';";
$query1 = mysql_query($req1) or die (mysql_error());
while($val1=mysql_fetch_array($query1))
{
echo"<form action=Fomulaire_de_modif_des_publications.php method=GET>";
echo "<textarea cols=120 rows=1 name=titre>".$val1["titre"]."</textarea>"."<textarea cols=6 rows=1 name=année>".$val1["date"]."</textarea>"."<textarea cols=16 rows=1 name=auteur>".$val1["auteur1"]."</textarea>"."<textarea cols=16 rows=1 name=type>".$val1["type"]."</textarea>"."<input value='Modifier la publication' type='submit'>";
echo"</form>";
echo"<br>";
}
?>
</body>
</html> |
Partager