please help me! I have a script that works,but I get an error when creating the database tables.it gives me "error when creating table". the script is below names have been changed for security.please tell me why I get this error.
--------------
the script
--------------
<?php
// PHP/MYSQL page.
//MySQL Variables.
require "function.php";
MySQL_connect("localhost","fake","fake","fake_db") ;
//Variables of Form
$id = $_POST['id'];
$name = $_POST['fname'];
$description = $_POST['description'];
$minpow = $_POST['minpow'];
$order = $_POST['order'];
//Connecting to MYSQL
MySQL_connect("localhost","fake","fake");
$sql=mysql_query("INSERT INTO forums ($id,$fname,$description,$minpow,$minpow,$minpow,0 ,0, , ,$order)");
$result = mysql_query($sql);
if ($result) {
echo("Table created successfully");
} else {
echo("error when creating table");
}
?>