Hello,
I am running PHP Version 4.3.8 and have sybase installed on the server. When I try to connect to sybase using the following:
$cnn = sybase_connect("GIDS","username","password");
$result = sybase_query("Select * from passenger");
$i = 0;
while ($r = sybase_fetch_array($result)) {
$i++;
$fname = $r["FirstName"];
$lname = $r["LastName"];
echo "$i: $fname $lname <br>";
}
it returns the following error message:
Fatal error: Call to undefined function: sybase_connect() in D:\IDS\wwwroot\db.php on line 2
Here is my php.ini file (the section on [sybase])
[Sybase]
; Allow or prevent persistent links.
sybase.allow_persistent = On
; Maximum number of persistent links. -1 means no limit.
sybase.max_persistent = -1
; Maximum number of links (persistent + non-persistent). -1 means no limit.
sybase.max_links = -1
;sybase.interface_file = "/usr/sybase/interfaces"
; Minimum error severity to display.
sybase.min_error_severity = 10
; Minimum message severity to display.
sybase.min_message_severity = 10
; Compatability mode with old versions of PHP 3.0.
; If on, this will cause PHP to automatically assign types to results according
; to their Sybase type, instead of treating them all as strings. This
; compatability mode will probably not stay around forever, so try applying
; whatever necessary changes to your code, and turn it off.
sybase.compatability_mode = off
What am I missing?
Thank You,
Chris Wheat