Moved a 'mysql_select_db' so the script may ran with mysql releases < 3.23

This commit is contained in:
Loïc Chapeaux
2001-06-30 16:03:54 +00:00
parent edb9c660e6
commit 015c995a85

View File

@@ -15,9 +15,10 @@ else
} }
unset($sql_query); unset($sql_query);
mysql_select_db($db);
if(MYSQL_MAJOR_VERSION == "3.23") if(MYSQL_MAJOR_VERSION == "3.23")
{ {
mysql_select_db($db);
$result = mysql_query("SHOW TABLE STATUS LIKE '$table'") or mysql_die(); $result = mysql_query("SHOW TABLE STATUS LIKE '$table'") or mysql_die();
$row = mysql_fetch_array($result); $row = mysql_fetch_array($result);
if(!empty($row["Comment"])) if(!empty($row["Comment"]))