Try removing $con from this line. Since you already have a link opened, theres no need to call it. Also make sure you have the php_mssql.dll extension enabled.
Code:
$result1 = mssql_query("SELECT user_no FROM account.dbo.USER_PROFILE WHERE login_flag = '1100'",$con);
Try removing $con from this line. Since you already have a link opened, theres no need to call it. Also make sure you have the php_mssql.dll extension enabled.
Code:
$result1 = mssql_query("SELECT user_no FROM account.dbo.USER_PROFILE WHERE login_flag = '1100'",$con);
after a change , I get a new error
Code:
Parse error: syntax error, unexpected ')' in C:\Program Files\VertrigoServ\www\newreg\Player_Online_List_php.php on line 21
first of all, warmonger, as usual, is incorrect, for the mssql u do need the $con, otherwise it wont connect to the DB
second, 'php_mssql.dll' can be found in a line in the httpd.conf file in ur apache folder, u need to uncomment that in order for it to load mssql extensions, be sure u save and restart the apache server b4 u try again.
usually i am against spoonfeeding the noobs, but the only thing worse then spoonfeeding them, is giving them bad info . . .
and u need to learn how ur apache server works, and u need to learn php otherwise your server willl be a miserable failure, they are both required to successfully run and admin a server.
first of all, warmonger, as usual, is incorrect, for the mssql u do need the $con, otherwise it wont connect to the DB
second, 'php_mssql.dll' can be found in a line in the httpd.conf file in ur apache folder, u need to uncomment that in order for it to load mssql extensions, be sure u save and restart the apache server b4 u try again.
usually i am against spoonfeeding the noobs, but the only thing worse then spoonfeeding them, is giving them bad info . . .
and u need to learn how ur apache server works, and u need to learn php otherwise your server willl be a miserable failure, they are both required to successfully run and admin a server.
Wrong kid, I can sit here and spoon feed you all day. But sitting back and watching you realize how wrong you are from the start should be a learning experience all its own. You do NOT need to call a active connection, if one is already open, php will automatically default and use the last one active. So really the $con itself is just a waste of text. Secondly the php extensions are enabled through php.ini configuration file, not through the web servers config file (kinda makes sense php extensions enabled in php configurations?). And who uses slow *** insecure apache anymore? Time for you people to catch up with the times.
its going to be around line number 965 depending on ur version, it will look like this:
Code:
; Windows Extensions
; Note that ODBC support is built in, so no dll is needed for it.
; Note that many DLL files are located in the extensions/ (PHP 4) ext/ (PHP 5)
; extension folders as well as the separate PECL DLL download (PHP 5).
; Be sure to appropriately set the extension_dir directive.
extension=php_bz2.dll
;extension=php_curl.dll
;extension=php_dba.dll
extension=php_mbstring.dll
extension=php_exif.dll
;extension=php_fileinfo.dll
extension=php_gd2.dll
extension=php_gettext.dll
;extension=php_gmp.dll
extension=php_imap.dll
;extension=php_interbase.dll
;extension=php_intl.dll
;extension=php_ldap.dll
extension=php_mcrypt.dll
;extension=php_mssql.dll
;extension=php_mysql_mysqlnd.dll
extension=php_mysql_libmysql.dll
;extension=php_mysqli_mysqlnd.dll
extension=php_mysqli_libmysql.dll
u can find it in xampp/php/php.ini
just take the comment out so it looks like so:
Code:
; Windows Extensions
; Note that ODBC support is built in, so no dll is needed for it.
; Note that many DLL files are located in the extensions/ (PHP 4) ext/ (PHP 5)
; extension folders as well as the separate PECL DLL download (PHP 5).
; Be sure to appropriately set the extension_dir directive.
extension=php_bz2.dll
;extension=php_curl.dll
;extension=php_dba.dll
extension=php_mbstring.dll
extension=php_exif.dll
;extension=php_fileinfo.dll
extension=php_gd2.dll
extension=php_gettext.dll
;extension=php_gmp.dll
extension=php_imap.dll
;extension=php_interbase.dll
;extension=php_intl.dll
;extension=php_ldap.dll
extension=php_mcrypt.dll
extension=php_mssql.dll
;extension=php_mysql_mysqlnd.dll
extension=php_mysql_libmysql.dll
;extension=php_mysqli_mysqlnd.dll
extension=php_mysqli_libmysql.dll