1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
|
<?$sq4='SHOW DATABASES ';
$quer4 = mysql_query($sq4) or die(mysql_error());
//$assoc= mysql_fetch_assoc($quer);
//$frow4 = mysql_fetch_row($quer4);
//echo $frow4[0].'<br>';
echo $quer4.'<br>';
echo '<form method="post"><SELECT NAME="labase">';
$i=0;
while ($frow4 = mysql_fetch_row($quer4))
{
// afficher le nom d'une table
print '<OPTION VALUE="'.$frow4[$i].'">'.$frow4[$i].'</option>';
}
$i++;
echo '</SELECT><input type="submit" value="gerer la base" name="envoi"/></form>';
}
?> |