site help

Results 1 to 12 of 12
  1. #1
    Apprentice amrwm is offline
    MemberRank
    Dec 2009 Join Date
    8Posts

    sad site help

    why in all my gunz site i get error in this line?
    $resource = mssql_connect($_MSSQL[Host], $_MSSQL[User], $_MSSQL[Pass]) or die("Cant connect to database");
    mssql_select_db($_MSSQL[DBNa], $resource);

    any help please!


  2. #2
    num num num <3 rootbeer daniel131605 is offline
    MemberRank
    Jul 2008 Join Date
    New YorkLocation
    573Posts

    Re: site help

    Quote Originally Posted by amrwm View Post
    why in all my gunz site i get error in this line?
    $resource = mssql_connect($_MSSQL[Host], $_MSSQL[User], $_MSSQL[Pass]) or die("Cant connect to database");
    mssql_select_db($_MSSQL[DBNa], $resource);

    any help please!
    mk... eather you need to fill out where it says "host" "user" etc... or you need to change "mssql"-->"odbc"

    thank me if i helped please

  3. #3
    Apprentice amrwm is offline
    MemberRank
    Dec 2009 Join Date
    8Posts

    Re: site help

    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

  4. #4
    num num num <3 rootbeer daniel131605 is offline
    MemberRank
    Jul 2008 Join Date
    New YorkLocation
    573Posts

    Re: site 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:

    $resource = mssql_connect($_MSSQL[Host], $_MSSQL[User], $_MSSQL[Pass]) or die("Cant connect to database");
    mssql_select_db($_MSSQL[DBNa], $resource);
    then you have to fill in the host user and pass etc..

    make sure to post when you get more info please

  5. #5
    Apprentice amrwm is offline
    MemberRank
    Dec 2009 Join Date
    8Posts

    Re: site help

    I have filled in all the blanks correctly but still same error

  6. #6
    num num num <3 rootbeer daniel131605 is offline
    MemberRank
    Jul 2008 Join Date
    New YorkLocation
    573Posts

    Re: site help

    send a quote or config.php and a picture of the error please ;)

  7. #7
    Account Upgraded | Title Enabled! llMafiall is offline
    MemberRank
    Dec 2009 Join Date
    SumwhereeLocation
    610Posts

    Re: site help

    Quote Originally Posted by amrwm View Post
    I have filled in all the blanks correctly but still same error
    Problem is eazy to fix,
    You need to reinstall mysqyl.
    And change the device ( i quess they called it like that )
    To /SQLEXPRESS, then it will work for you.

  8. #8
    num num num <3 rootbeer daniel131605 is offline
    MemberRank
    Jul 2008 Join Date
    New YorkLocation
    573Posts

    Re: site help

    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

  9. #9
    Alpha Member gregon13 is offline
    MemberRank
    Nov 2007 Join Date
    CanadaLocation
    1,945Posts

    Re: site help

    Quote Originally Posted by daniel131605 View Post
    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
    for some it works others it doesn't

  10. #10
    Account Upgraded | Title Enabled! llMafiall is offline
    MemberRank
    Dec 2009 Join Date
    SumwhereeLocation
    610Posts

    Re: site help

    Quote Originally Posted by daniel131605 View Post
    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

    Yes, like gregon said, for some it works, i had the
    same problem, and i reinstalled mysql and everything is
    working fine now.

  11. #11
    num num num <3 rootbeer daniel131605 is offline
    MemberRank
    Jul 2008 Join Date
    New YorkLocation
    573Posts

    Re: site help

    ohhh, weird xD lol... i didn't know that worked, nice to know though guys

  12. #12
    Apprentice ploke012 is offline
    MemberRank
    Apr 2010 Join Date
    17Posts

    Re: site help

    it will work if u co35



Advertisement