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
| <!DOCTYPE html>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<html>
<head>
<title>Votre besoin</title>
</head>
<body>
<form action="search.php" name="search_form" method="post">
<label for="besoin">Votre Besoin </label>
<select name="besoin" id="besoin" >
<?php
$link = mysqli_connect("localhost", "root", "", "monsite");
$sql = 'SELECT table_name FROM monsite.tables WHERE table_name!="helper"';
$result = mysqli_query($link, $sql) or die (mysqli_error($link));
if (!$result) {
printf("Error: %s\n", mysqli_error($link));
exit();
}
while($show = mysqli_fetch_array($result)){
?>
<option value=""> <?php echo $show['table_name'] ?></option>
<?php
}
?>
</select> |