Hi,
I've installed Apache 2.0, PHP4, SyBase 7, setup the database
I'm trying to connect to SyBase using the below code, but keep getting 'DB Error: extension not found'.
Can anyone help me this.
<?php
//require the PEAR:😃B classes.
require_once 'DB.php';
$db_engine = 'sybase';
$db_user = 'ccs';
$db_pass = 'ccs';
$db_host = 'localhost';
$db_name = 'SupportSystem';
$datasource = $db_engine.'://'.
$db_user.':'.
$db_pass.'@'.
$db_host.'/'.
$db_name;
$db_object = DB::connect($datasource, TRUE);
/* assign database object in $db_object,
if the connection fails $db_object will contain
the error message. */
// If $db_object contains an error:
// error and exit.
if(DB::isError($db_object)) {
die($db_object->getMessage());
}
?>