472,146 Members | 1,283 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,146 software developers and data experts.

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 1543
"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

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.