'InnoDB', 'page' => 'Status')). '">' . $GLOBALS['strDetails'] . ')'; } else { $error = '#' . ((string) $error_number) . ' - ' . $error_message; } return $error; } function PMA_DBI_num_rows($result) { if (!is_bool($result)) { return mysql_num_rows($result); } else { return 0; } } function PMA_DBI_insert_id($link = null) { if (empty($link)) { if (isset($GLOBALS['userlink'])) { $link = $GLOBALS['userlink']; } else { return false; } } //$insert_id = mysql_insert_id($link); // if the primary key is BIGINT we get an incorrect result // (sometimes negative, sometimes positive) // and in the present function we don't know if the PK is BIGINT // so better play safe and use LAST_INSERT_ID() // // by the way, no problem with mysqli_insert_id() return PMA_DBI_fetch_value('SELECT LAST_INSERT_ID();', 0, 0, $link); } function PMA_DBI_affected_rows($link = null) { if (empty($link)) { if (isset($GLOBALS['userlink'])) { $link = $GLOBALS['userlink']; } else { return false; } } return mysql_affected_rows($link); } /** * @todo add missing keys like in from mysqli_query (orgname, orgtable, flags, decimals) */ function PMA_DBI_get_fields_meta($result) { $fields = array(); $num_fields = mysql_num_fields($result); for ($i = 0; $i < $num_fields; $i++) { $fields[] = mysql_fetch_field($result, $i); } return $fields; } function PMA_DBI_num_fields($result) { return mysql_num_fields($result); } function PMA_DBI_field_len($result, $i) { return mysql_field_len($result, $i); } function PMA_DBI_field_name($result, $i) { return mysql_field_name($result, $i); } function PMA_DBI_field_flags($result, $i) { return mysql_field_flags($result, $i); } ?>