469,326 Members | 1,538 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,326 developers. It's quick & easy.

ASP to PHP

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!

Sep 19 '07 #1
1 1524
"Matt White" <wh*****@gmail.comwrote in message
news:11**********************@i13g2000prf.googlegr oups.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
Sep 19 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by William C. White | last post: by
2 posts views Thread by Albert Ahtenberg | last post: by
3 posts views Thread by James | last post: by
reply views Thread by Ollivier Robert | last post: by
1 post views Thread by Richard Galli | last post: by
4 posts views Thread by Albert Ahtenberg | last post: by
1 post views Thread by inderjit S Gabrie | last post: by
2 posts views Thread by Jack | last post: by
3 posts views Thread by Sandwick | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by suresh191 | last post: by
reply views Thread by Gurmeet2796 | last post: by
reply views Thread by listenups61195 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.