sybase issue
| From: | Ronald Corsico | Date: | Tue, 20 Aug 2002 18:53:10 +0000 |
| Subject: | sybase issue | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-21257@lists.php.net to get a copy of this message | ||
We have installed PHP 4.2.2 in a Solaris 2.6, with Netscape Enterprise Server 3.5.1 and Sybase SQL Server/11.0.3.3.
We compiled PHP with following options, and it was successful completed with no errors.
./configure --with-nsapi=/opt/netscape/suitespot --enable-track-vars --enable-libgcc --with-sybase=/opt/sybase
We're trying to execute a PHP page, but we getting the following errors messages.
Somebody knows what is happening?
Thanks
Ronald
<?php
#phpinfo();
$con = sybase_connect("MS_SQL1", "tools", "toolsy2k");
sybase_select_db('tcs_db');
$qry = sybase_query("select * from erbsfora", $con);
echo sybase_result($qry, 1, 1);
sybase_close($con);
?>
Warning: Sybase: A link to the server could not be established in /opt/netscape/suitespot/docs/teste.php on line 4
Warning: 0 is not a Sybase link index in /opt/netscape/suitespot/docs/teste.php on line 5
Warning: 0 is not a Sybase result index in /opt/netscape/suitespot/docs/teste.php on line 6
Warning: 0 is not a Sybase link index in /opt/netscape/suitespot/docs/teste.php on line 7
_________________________________________________________________
MSN Photos é a maneira mais fácil e prática de editar e compartilhar sua fotos: http://photos.msn.com.br