This is a discussion on Trouble Connecting to Database within the PHP Language forums, part of the PHP Programming Forums category; Hi, I've been asked to convert a script from ASP to PHP. I don't know hardly anything about ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Hi,
I've been asked to convert a script from ASP to PHP. I don't know hardly anything about ASP (I'd like to keep it that way) and I've certainly never converted a script from ASP to PHP. Formerly, the script used to connect to the database with: strconnect = "Provider=sqloledb;Data Source=" &dbserver & ";Initial Catalog="&Database&";User Id="&Username&";Password="&Password&";" Set rs = Server.CreateObject("ADODB.Recordset") sql = "SELECT...." rs.Open sql, strConnect This is all the information available to me. What do I need to do to connect to the database? If I knew what type it was it might be easier, but I don't even know that for sure. Thanks! |