П О Р Т А Л                            
С Е Т Е В Ы Х                          
П Р О Е К Т О В                        
  
Поиск по сайту:
                                                 
Главная

О проекте

Web-мастеру
     HTML & JavaScript
     SSI
     Perl
     PHP
     XML & XSLT
     Unix Shell

MySQL

Безопасность

Хостинг

Другое








Самое читаемое:

Учебник PHP - "Для Чайника".
Просмотров 5478 раз(а).

Иллюстрированный самоучитель по созданию сайтов.
Просмотров 7815 раз(а).

Учебник HTML.
Просмотров 4576 раз(а).

Руководство по PHP5.
Просмотров 1128 раз(а).

Хостинг через призму DNS.
Просмотров 6375 раз(а).

Подборка текстов стандартных документов.
Просмотров 57190 раз(а).

Учебник PHP - Самоучитель
Просмотров 4783 раз(а).

Документация на MySQL (учебник & справочное руководство)
Просмотров 10813 раз(а).

Внешние атаки...
Просмотров 6401 раз(а).

Учебник PHP.
Просмотров 3913 раз(а).

SSI в примерах.
Просмотров 931 раз(а).



 
 
| Добавить в избранное | Сделать стартовой | Помощь





Руководство по PHP
Пред. След.

ingres_connect

(PHP 4 >= 4.0.2, PHP 5 <= 5.0.4)

ingres_connect --  Open a connection to an Ingres II database

Description

resource ingres_connect ( [string database [, string username [, string password]]] )

Returns a Ingres II link resource on success, or FALSE on failure.

ingres_connect() opens a connection with the Ingres database designated by database, which follows the syntax [node_id::]dbname[/svr_class].

If some parameters are missing, ingres_connect() uses the values in php.ini for ingres.default_database, ingres.default_user, and ingres.default_password.

The connection is closed when the script ends or when ingres_close() is called on this link.

All the other ingres functions use the last opened link as a default, so you need to store the returned value only if you use more than one link at a time.

Пример 1. ingres_connect() example

<?php
    $link
= ingres_connect("mydb", "user", "pass")
        or die(
"Could not connect");
    echo
"Connected successfully";
    
ingres_close($link);
?>

Пример 2. ingres_connect() example using default link

<?php
    ingres_connect
("mydb", "user", "pass")
        or die(
"Could not connect");
    echo
"Connected successfully";
    
ingres_close();
?>

See also ingres_pconnect() and ingres_close().



Если Вы не нашли что искали, то рекомендую воспользоваться поиском по сайту:
 





Copyright © 2005-2016 Project.Net.Ru