I am a beginner of PEAR. I've just follow a tutorial example and have done the following code:
<?
require_once("DB.php");
$db_type = 'localhost';
$db_user = 'sandman';
$db_pass = '123';
$db_name = 'test';
$dsn = $db_type . '://' . $db_user . ':' . $db_pass . '@' . strtoupper($db_type) . '/' . $db_name;
$db = DB::Connect($dsn);
$sql = 'SELECT * FROM link';
$rs = $db->query($sql); //given by the tutorial
?>
But the error message show up:
Fatal error: Call to undefined function: query() in ...blah blah...
Can anyone point out my problem.
Thanks.