问题
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