les09 credb connect tm





Creating a Database Connection










The interactions in this eCourse require Javascript to be enabled.



 

Creating a Database Connection


previous|next





The hr_db.inc file contains a db_connect() function that calls the OCI8 oci_connect() library function for creating a database connection.
The db_connect() function provides two parameters:




$un for the username, with default value ORA_CON_UN



$pw for the password, with default value ORA_CON_PW



The db_connect() function returns a database connection identifier, or false on error. The db_connect() function uses ORA_CON_DB for connecting to the target database instance.
Note: After each page request, a database connection opened with the oci_connect() call is implicitly closed. If you want, you can explicitly close the database connection by calling the oci_close() function.

 









Wyszukiwarka

Podobne podstrony:
les09 page handling tm
les09 cre ui tm
les09 disp?pt tm
les09 create? logic tm
les09 crectl logic tm
les09 get?pt tm
les09 login page tm
les09 logout page tm
les09 get emp tm
les09 cregen query tm
les09 disp emp tm
les09 create? conn prop tm
les09 getstart tm
connections pre intermediate minimock test 0 4 b
connector?s source
RJ45 to?25M connections
13 79 Pistons and connecting rods assembly

więcej podobnych podstron