ASP to PHP
am 19.09.2007 21:14:25 von Matt White
Hi,
We recently inherited some ASP scripts but we don't run any IIS
servers so we are converting them to PHP. I don't know hardly anything
about ASP and I've certainly never converted a script from ASP to PHP.
Formerly, one 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 in PHP? If I knew what type of DB it was it
might be easier, but I don't even know that for sure. Thanks!
Re: ASP to PHP
am 19.09.2007 22:34:56 von McKirahan
"Matt White" wrote in message
news:1190229265.144769.277200@i13g2000prf.googlegroups.com.. .
> Hi,
>
> We recently inherited some ASP scripts but we don't run any IIS
> servers so we are converting them to PHP. I don't know hardly anything
> about ASP and I've certainly never converted a script from ASP to PHP.
> Formerly, one 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 in PHP? If I knew what type of DB it was it
> might be easier, but I don't even know that for sure. Thanks!
"sqloledb" refers to SQL Server.
Google the following: PHP "SQL Server" connection
http://us2.php.net/mssql