Новые книги

GNU Emacs is the most popular and widespread of the Emacs family of editors. It is also the most powerful and flexible. Unlike all other text editors, GNU Emacs is a complete working environment—you can stay within Emacs all day without leaving.

, 3rd Edition tells readers how to get started with the GNU Emacs editor. It is a thorough guide that will also "grow" with you: as you become more proficient, this book will help you learn how to use Emacs more effectively. It takes you from basic Emacs usage (simple text editing) to moderately complicated customization and programming.The third edition of

describes Emacs 21.3 from the ground up, including new user interface features such as an icon-based toolbar and an interactive interface to Emacs customization. A new chapter details how to install and run Emacs on Mac OS X, Windows, and Linux, including tips for using Emacs effectively on those platforms.

, third edition, covers:

Learning GNU Emacs

Learning GNU Emacs

Learning GNU Emacs

• How to edit files with Emacs

• Using the operating system shell through Emacs

• How to use multiple buffers, windows, and frames

• Customizing Emacs interactively and through startup files

• Writing macros to circumvent repetitious tasks

• Emacs as a programming environment for Java, C++, and Perl, among others

• Using Emacs as an integrated development environment (IDE)

• Integrating Emacs with CVS, Subversion and other change control systems for projects with multiple developers

• Writing HTML, XHTML, and XML with Emacs

• The basics of Emacs Lisp

The book is aimed at new Emacs users, whether or not they are programmers. Also useful for readers switching from other Emacs implementations to GNU Emacs.
Книга содержит теоретический и практический материал, который может служить отправной точкой на пути к достижению высоких результатов эффективности баннерной рекламы для интернет-проектов любой тематики и величины. В ней рассматриваются роль баннерной рекламы в системе интернет-маркетинга, форматы и типы рекламных баннеров, баннерные сети и рекламные механизмы. Даются практические рекомендации по изучению психологических особенностей восприятия рекламных баннеров, приводится методика создания эффективного рекламного баннера.

Для специалистов в области интернет-маркетинга и разработчиков Web-сайтов.

mysql_errno

Учебник РНР
НазадВперёд

mysql_errno

(PHP 3, PHP 4)

mysql_errno - возвращает числовое значение сообщения об ошибке предыдущей MySQL-операции.

Описание

int mysql_errno ([resource link_identifier])

Возвращает номер ошибки последней MySQL-функции или 0 (ноль), если ошибки не было.

Ошибки, возвращаемые из БД MySQL, больше не выводят предупреждений. Используйте mysql_errno() для запрашивания кода ошибки. Обратите внимание, что эта функция возвращает только error code самой последней выполненной MySQL-функции (не включая mysql_error() и mysql_errno()), поэтому, если вы хотите использовать её, проверяйте значение перед вызовом другой MySQL-функции.

Пример 1. mysql_errno
<?php
    mysql_connect("localhost", "mysql_user", "mysql_password");

    mysql_select_db("nonexistentdb");
    echo mysql_errno() . ": " . mysql_error(). "\n";

    mysql_select_db("kossu");
    mysql_query("SELECT * FROM nonexistenttable");
    echo mysql_errno() . ": " . mysql_error() . "\n";
?>

На выходе будет:

1049: Unknown database 'nonexistentdb'
1146: Table 'kossu.nonexistenttable' doesn't exist

См. также mysql_error().


Назад Оглавление Вперёд
mysql_drop_db Вверхmysql_error