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 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56
| <html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>
<body>
<form name="form1" method="post" action="avancee.php">
<label>
<input type="text" name="search" id="textfield" />
</label>
<label>
<input type="submit" name="submit" value="rechercher" id="submit" />
</label>
<p>
<label>
<input type="text" name="home" id="textfield2" />
</label>
<label>
<input type="checkbox" name="maison" id="checkbox" />
</label>
</p>
<p>
<label>
<input type="text" name="writer" id="textfield3" />
</label>
<label>
<input type="checkbox" name="auteur" id="checkbox2" />
</label>
</p>
</form>
<?php
if(isset($_POST["submit"]))
{$a=$_POST["search"];
$b=$_POST["home"];
$c=$_POST["writer"];
if(isset($_POST["maison"])&&isset($_POST["auteur"])&&$a!="")
{mysql_connect('localhost','root','');
mysql_select_db('compte');
$req=mysql_query("SELECT * FROM livre where nom='$a'and maison d edition='$b' and auteur='$c' ");
echo "<table border>";
while($data=mysql_fetch_array($req))
{
echo "<tr>
<td> <span class='style1'> nom ".$data['nom']."<br>auteur ".$data['auteur']."<br>maison d edition ".$data['maison d edition']
."<br>nbre d exemplaire ".$data['nbre d exemplaire']."</span></td>
<td></td>
</tr>";
}
echo"</table>";
mysql_free_result($req);
mysql_close();}
}
?>
</body>
</html> |
Partager