Sign in
apache
/
zetacomponents
/
29f145701af816bc680d254056e28f463aacd76f
/
.
/
Database
/
docs
/
tutorial_example_01.php
blob: 918a3dbc127d728d9cbc88430d62f180b7d252e9 [
file
] [
log
] [
blame
]
<?
php
$db
=
ezcDbFactory
::
create
(
'mysql://user:password@host/database'
);
ezcDbInstance
::
set
(
$db
);
// anywhere later in your program you can retrieve the db instance again using
$db
=
ezcDbInstance
::
get
();
?>