Re: DB.php

From: Date: Mon, 16 Apr 2001 19:10:04 +0000
Subject: Re: DB.php
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-63@lists.php.net to get a copy of this message
I saw that tutorial. It doesn't show how to include the classes, the examples are just plain broken. Emil Rasmussen wrote: > > Hi > > >Are there any complete usage examples anywhere? > > This is what I do: > > //includes DB.php > require_once('DB.php'); > > //db connection > $db = DB::connect("mysql://$DB_USER:$DB_PASSWORD@$DB_HOSTNAME/$DB_NAME"); > > if (DB::isError($db)) { > die ($db->getMessage()); > } > > And you can get more help here: ¿– Ÿ¶×Œm…áè7 > http://vulcanonet.com/soft/pear_tut/ > > Emil > > -- > Emil Rasmussen > http://www.noget.net -- Monte Ohrt <monte@ispi.net> http://www.ispi.net/

« previous php.pear.general (#63) next »