Moved a 'mysql_select_db' so the script may ran with mysql releases < 3.23
This commit is contained in:
@@ -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"]))
|
||||||
|
Reference in New Issue
Block a user