Skip to Content.
Sympa Menu

freetds - Re: PHP to Sybase

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: Dustin Marquess <dustin.marquess AT algx.com>
  • To: TDS Development Group <freetds AT franklin.metalab.unc.edu>
  • Subject: Re: PHP to Sybase
  • Date: Mon, 30 Sep 2002 12:23:02 -0500

Brian,

Make sure PATH046 is defined in your /usr/local/etc/freetds.conf file..

-Dustin

Brian Paquin wrote:
Looking for a little assistance...

Using MacOS X.2, PHP 4.3dev, FreeTDS 0.60, and Sybase ASE 12.5.
iSQL and tSQL work great.
<? phpinfo()?> works great

But how to I connect to Sybase??

Using:
-----------------------
<?php
$conn = sybase_connect("PATH046", "sa", "");
sybase_select_db("pubs2");
$qry = sybase_query("select * from titles", $conn);

echo sybase_result($qry, 1, 1);

sybase_close($conn);
?>
------------------------
will not connect:
(*Warning*: Sybase: Unable to connect in* /Library/WebServer/Documents/testconnect.php* on line* 2*)

Any ideas??

Brian

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature




Archive powered by MHonArc 2.6.24.

Top of Page