I know someone has an easy answer to this and I'm embarassed to have to ask on such a basic task. I've been working with databases and reporting tools for some time, but want to start working on a front end. We've got offices in various cities, and I'd like to get some information to them without consistently having to either set up the Crystal reports into our billing system (12 databases) or exporting into Excel (folks out there doing this know what a pain in the backside this can be). I've only used PHP for a day and most of that day has been spent scanning the PHP Manual and this site for some help in connecting to a SQL Server database. I've tried the syntax in the manual and get parsing errors. I've tried the two scripts I could find on tek-tips to no avail (searching for mssql_connect). When I get past the parsing errors I get this error:
Fatal error: Call to undefined function: mssql_connect() in c:\phpdev\ on line 21
I can't figure this one out. I'm calling to a local database, but I've also tried it with one of the work databases with no luck. The best I could guess as to why this is happening is in the PHP manual....
The servername argument has to be a valid servername that is defined in the 'interfaces' file.
So my question(s) is(are): 1. If neither database I've tried connecting to are 'valid servernames that are defined in the "interfaces" file', then how do I make them such? 2. If this is not the reason for the error, any ideas why I'm getting this error, or any sample scripts I might try to get this to work?
I'm using PHP 4.0.6 and SQL Server 7.
Thanks in advance, folks, this site has been an absolute lifesaver.
Fatal error: Call to undefined function: mssql_connect() in c:\phpdev\ on line 21
I can't figure this one out. I'm calling to a local database, but I've also tried it with one of the work databases with no luck. The best I could guess as to why this is happening is in the PHP manual....
The servername argument has to be a valid servername that is defined in the 'interfaces' file.
So my question(s) is(are): 1. If neither database I've tried connecting to are 'valid servernames that are defined in the "interfaces" file', then how do I make them such? 2. If this is not the reason for the error, any ideas why I'm getting this error, or any sample scripts I might try to get this to work?
I'm using PHP 4.0.6 and SQL Server 7.
Thanks in advance, folks, this site has been an absolute lifesaver.