add trouble detection if insert field failed

This commit is contained in:
Steve Alberty
2001-07-17 09:58:43 +00:00
parent 646af33cfe
commit 1fee1b72dc

View File

@@ -63,8 +63,7 @@ if(isset($submit))
}
$sql_query = "ALTER TABLE $table ADD $query";
$result = mysql_query("ALTER TABLE ".db_name($db)."."
. tbl_name($table) . " ADD $query");
$result = mysql_query("ALTER TABLE ".db_name($db).".". tbl_name($table) . " ADD $query") or mysql_die();
$primary = '';