why in all my gunz site i get error in this line?:blink:
$resource = mssql_connect($_MSSQL[Host], $_MSSQL[User], $_MSSQL[Pass]) or die("Cant connect to database");
mssql_select_db($_MSSQL[DBNa], $resource);
any help please!:(::(:
Printable View
why in all my gunz site i get error in this line?:blink:
$resource = mssql_connect($_MSSQL[Host], $_MSSQL[User], $_MSSQL[Pass]) or die("Cant connect to database");
mssql_select_db($_MSSQL[DBNa], $resource);
any help please!:(::(:
worked but i get this!!!!!!!!
Warning: odbc_connect() [function.odbc-connect]: SQL error: [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified, SQL state IM002 in SQLConnect in C:\AppServ\www\secure\config.php on line 32
Cant connect to database
help
open config.php and hit alt+g and go to line 32 and check whats wrong with that part of the script
if its this:
then you have to fill in the host user and pass etc..Quote:
$resource = mssql_connect($_MSSQL[Host], $_MSSQL[User], $_MSSQL[Pass]) or die("Cant connect to database");
mssql_select_db($_MSSQL[DBNa], $resource);
make sure to post when you get more info please
I have filled in all the blanks correctly but still same error
send a quote or config.php and a picture of the error please ;)
NO! don't do that, thats a waste of time lol.... when i put in [host] i just use DANIEL nothing like \sqlexpress rofl, so that won't work, like i said post your config.xml! thanks
ohhh, weird xD lol... i didn't know that worked, nice to know though guys
it will work if u co35