okay i am making a web based panel for a gunz server and it syas this "Parse error: syntax error, unexpected T_STRING in C:\AppServ\www\config.php on line 3" Here is my config: <?php mssql_connect(')ALEX-PC/SQLEXPRESS","sa","triangle') mssql_select_db(GunzDB"); $opened = 1; if($opened == 0){ $pagetitle = "Server in maintenance"; } ?> i'm new at this whole php thing so please help.
Ok here is the problem mssql_connect(')ALEX-PC/SQLEXPRESS","sa","triangle') mssql_select_db(GunzDB"); Use this script instead those lines mssql_connect("ALEX-PC/SQLEXPRESS","sa","triangle"); mssql_select_db("GunzDB");
okay thanks, we cleared up that error. Now i have this: Fatal error: Call to undefined function mssql_connect() in C:\AppServ\www\config.php on line 2 Dx what could be the problem. maybe i configured something else wrong? please help
you are trying to connect with Microsoft Sql Server it giving error because the library to connect with mssql server hasn't be activated open the php.ini file and find ;extension=php_mssql.dll remove ; from extension=php_mssql.dll and restart your apache server then it should work