PHP MS_SQL
Posted: Thu Jan 20, 2011 5:58 am
Hello there!
I'm a novice php programmer and learning through the book "Learning PHP 5".
I just came to chapter 7 which is about DB usage. I am not entierly unknown to DB as i have been working with MS SQL through java and C#.
Though, when i try a simple piece of code to see if i can get connection to the DB:
my XAMPP apache server crashed with a "Apache HTTP server stopped working"
I have been looking around and did enable php_mssql in php.ini file.
My server is willing to run other php scripts but just not the db connection script.
Anyone have some advice i could get to get it up and running?
Thanks in advance - Rasmus W.
PS. some system information -
OS : Vista
PHP version : 5.3
Apache version : 2.2
Editor (if that has any influence) : Eclipse Helios
PPS.
I'm a novice php programmer and learning through the book "Learning PHP 5".
I just came to chapter 7 which is about DB usage. I am not entierly unknown to DB as i have been working with MS SQL through java and C#.
Though, when i try a simple piece of code to see if i can get connection to the DB:
Code: Select all
$connection = mssql_connect('SQLEXPRESS', 'sa');
if($connection)
{
print 'Yay';
}
else{
print 'Nope';
}
I have been looking around and did enable php_mssql in php.ini file.
My server is willing to run other php scripts but just not the db connection script.
Anyone have some advice i could get to get it up and running?
Thanks in advance - Rasmus W.
PS. some system information -
OS : Vista
PHP version : 5.3
Apache version : 2.2
Editor (if that has any influence) : Eclipse Helios
PPS.