function _error()
{
$error_no = mysql_errno();
$error_msg = mysql_error();
echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">';
echo '<html dir="rtl" xmlns="http://www.w3.org/1999/xhtml" xml:lang="ar" lang="ar">';
echo '<head>';
echo '<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />';
echo '<title>خطأ في قواعد البيانات</title>';
echo '<style type="text/css"> body { font-family:tahoma; font-size:12px; } </style>';
echo '</head>';
echo '<body dir="rtl">';
echo '<div align="center">';
echo 'حدث خطأ مع قواعد البيانات <br />';
if (!empty($this->_from))
{
echo '<strong>';
echo 'سبب الخطأ : ';
if ($this->_from == 'connect')
{
echo 'الاتصال بقواعد البيانات';
}
elseif ($this->_from == 'select')
{
echo 'اختيار قاعدة البيانات';
}
elseif ($this->_from == 'close')
{
echo 'اغلاق الاتصال';
}
elseif ($this->_from == 'query')
{
echo 'استعلام';
}
else
{
echo 'غير معروف';
}
echo '</strong>';
echo '<br />';
}
echo 'رقم الخطأ : ' . $error_no . '<br />';
echo 'رسالة الخطأ : ' . $error_msg . '<br />';
if ($this->debug)
{
echo 'الاستعلام المسبب للخطأ : <br />';
echo '<div dir="ltr">';
echo $this->_query;
echo '</div>';
}
echo '</div>';
echo '</body>';
exit();
}
}