What is the proper connection string for Advantage Database Server?

江枫思渺然 提交于 2019-12-10 11:44:18

问题


I am running Sybase Advantage Database Server and a bit new to PHP coding. Advantage Database's knowledge base with code samples went offline awhile back, so I don't have much to go off of.

What would be the proper database connection string to use with Sybase's Advantage Database 10 in php?

This string works perfect in classic ASP:

<%
Set AdvConn = Server.CreateObject("ADODB.CONNECTION")
AdvConn.Open "DSN=AdvantageWintux"

Set Colors = AdvConn.Execute("SELECT * FROM Colors ORDER BY Color")

If Not Colors.EOF Then
    While Not Colors.EOF
    Response.Write(Colors("Color") & "<BR>")
Colors.MoveNext
Wend
Colors.Close
End If
%>

What would the PHP version of the connection string be?

I appreciate any help!

来源:https://stackoverflow.com/questions/44529924/what-is-the-proper-connection-string-for-advantage-database-server

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!