What the hell is wrong with MSSQL 2000 and PHP? php can connect to and select a database but whenever i try even the simplest of queries...php.exe 'encounters a problem'...
...everything works until the $result line...and i get an explorer error that says that php.exe sucks ass and can't get the job done.
Anyone?
php.exe has encountered a problem and needs to close. We are sorry for the inconvenience.
PHP:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
| <? function GET_SPLASH($db_name,$db_host,$db_user,$db_pass) { $link = mssql_connect("$db_host", "$db_user", "$db_pass") or die ('error connecting'); mssql_select_db ("$db_name") or die ('error selecting'); // how many photos? $query = "SELECT * FROM mw_init"; $result = mssql_query( $query ); } ?> |
...everything works until the $result line...and i get an explorer error that says that php.exe sucks ass and can't get the job done.
Anyone?