You don't have MSSQL support in your PHP installation. Uncomment the
line in PHP.ini that loads the MSSQL .dll
Use a phpinfo() file to see what modules are loaded.
You're making this hard on yourself...PHP is easy to learn.
> -----Original Message-----
> From: Arpan De [mailto:[EMAIL PROTECTED]]
> Sent: Monday, April 29, 2002 5:42 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] What's wrong????
> What is wrong with the following code?
> or die("Couldn't make connection");
> $sql="SELECT FName,LName,UserID FROM tblName ORDER BY FName";
> When the above code is executed, I am getting the following error:
> Fatal error: Call to undefined function mssql_connect()
> which points to the 2nd line in the code. Even the die() function
> get executed. I just copied & pasted the code from a tutorial I found
> web but am still getting this error !!! Is learning PHP so
> have never encountered such frustration while learning any other
> languages. It's making me too dependent on this newsgroup !!!
> does happen that in other languages, if you are getting an error, one
> overcome that particular error by employing some trial & error methods
> whatever & whenever I have tried to do the same in PHP, I could never
> overcome the error.
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php