sql_error_info 함수 추가

This commit is contained in:
chicpro
2015-10-12 15:31:03 +09:00
parent f1c56fe70c
commit 724a15866c

View File

@ -1598,6 +1598,21 @@ function sql_field_names($table, $link=null)
}
function sql_error_info($link=null)
{
global $g5;
if(!$link)
$link = $g5['connect_db'];
if(function_exists('mysqli_error')) {
return mysqli_errno($link) . ' : ' . mysqli_error($link);
} else {
return mysql_errno($link) . ' : ' . mysql_error($link);
}
}
// PHPMyAdmin 참고
function get_table_define($table, $crlf="\n")
{