$sql = "DESCRIBE ".$_POST['table'];
$db->fetch($sql);
print "<tr bgcolor='#E6E6E6' align='center'>";
while ($db->hasnext())
{
$tuple = $db->next();
if ($tuple['Key'] == "PRI")
{
$primaryKey[$j] = $tuple['Field'];
$j++;
}
print "<th>".$tuple['Field']."</th>";
$listField[$i] = $tuple['Field'];
$i++;
}
</php>
Retour