You are here: Trouble Connecting to Database « PHP Programming Language « IT news, forums, messages
Trouble Connecting to Database

Posted by Matt White on 09/19/07 15:02

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!

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация