Creates a table in the current database.
bool db_create_table(string tablename, mixed fieldnames, mixed fieldattrib [, string idfield [, mixed valarray]])
The result will be TRUE if the table was created or FALSE if the table already exists, could not be created or the records not be created.
// Create table
echo "We create mytable with 2 records";
$fn = array("name", "what", "OK"); // fieldnames
$fv[] = array("villa", " would like to live in", "0"); // valarray
$fv[] = array("appartmenthouse", " there we are", "true");
$fa = array("text", "longtext", "bool"); // fieldattributs
$res = db_create_table("mytable", $fn, $fa, "id", $fv);
if ($res)
{ echo "mytable created with 2 records"; }