how to conect the reg page to sql server 2011

Page 1 of 2 12 LastLast
Results 1 to 15 of 19
  1. #1
    RoRivals gaby001 is offline
    MemberRank
    Aug 2011 Join Date
    RomaniaLocation
    386Posts

    sad [SOLVED DELLETE TREAT PLEASE]ok hellp me plszzz reg page errorrr

    ok so now i have some eroor with my reg page
    is no error from mysql but i sommfing what i ned to do in php any one know where i ned to
    EDIT View image: Untitled
    ok so now i have some eroor with my reg page
    is no error from mysql but i sommfing what i ned to do in php any one know where i ned to
    EDIT View image: Untitled
    Last edited by gaby001; 16-02-13 at 03:52 AM. Reason: repost


  2. #2
    Retired (Goddamn idiots) DragonLord is offline
    MemberRank
    Dec 2003 Join Date
    /dev/urandomLocation
    554Posts

    Re: how to conect the reg page to sql server 2011

    1. English?
    2. Connect to it via what, air?

  3. #3
    Valued Member Selfrot is offline
    MemberRank
    Jan 2013 Join Date
    Food LibraryLocation
    137Posts

    Re: how to conect the reg page to sql server 2011

    If it's your own Launcher - make it so that the launcher search in yourdatabase@yourdomain : youruser;yourpass.

    If it's a custom launcher - search for a config file and enter your details there.


    It's a little hard to guess exactly what you want here, since in the Thread title you're telling us that you need it for a Registration page, and in the thread body you tell us it's a launcher - can't do much more for ya.

  4. #4
    You got reported! :o Kasistar is offline
    MemberRank
    Oct 2011 Join Date
    647Posts

    Re: how to conect the reg page to sql server 2011

    Quote Originally Posted by DragonLord View Post
    1. English?
    2. Connect to it via what, air?

  5. #5
    RoRivals gaby001 is offline
    MemberRank
    Aug 2011 Join Date
    RomaniaLocation
    386Posts

    Re: how to conect the reg page to sql server 2011

    sry abouth thta but i 2 question in the treat 1 is what i ned to do to conect the reg page to sql 2012 to atum2_db _account to create new loghinn in bicouse i make manual the new account in' "ti_account" so i ned to rezolve that
    and2 how to add that web page i have in "launcher .atm "

    is hard bicouse i never do that in rest al is ok
    1 ODBC=OK
    2SQL serv 2012= ok
    3 client =OK
    so that i asck
    dragon lord if u know why do you not share or realy maibe u make a tutorial how to do this ty

    :PS: sry about my English i was not born in us or UK im in RO and i learn Litle englis

  6. #6
    This is my title !!!! sami37 is offline
    MemberRank
    Jun 2010 Join Date
    287Posts

    Re: how to conect the reg page to sql server 2011

    Hi,

    You need to create a php script for your launcher with 2/3 input :

    Account Name
    Password
    Email
    And a validate buttom

    It's really simple when you know php/html

    Good Luck.
    Pm me if you don't understand.

  7. #7
    Banned St0rmy95 is offline
    BannedRank
    Jun 2011 Join Date
    0x604769Location
    202Posts

    Re: how to conect the reg page to sql server 2011

    Are you using the register script from ragezone?

  8. #8
    Member NomCake is offline
    MemberRank
    Apr 2012 Join Date
    98Posts

    Re: how to conect the reg page to sql server 2011

    Quote Originally Posted by St0rmy95 View Post
    Are you using the register script from ragezone?
    Unless you use an old version of Apache or XAMPP, you'll be better off changing the functions to the old registration or even creating your own. MSSQL Driver is discontinued now and the best one to use for SQL connections with MSSQL2012 or so on would be through sqlsrv:

    PHP: SQLSRV - Manual

    Good luck.

  9. #9
    Retired (Goddamn idiots) DragonLord is offline
    MemberRank
    Dec 2003 Join Date
    /dev/urandomLocation
    554Posts

    Re: how to conect the reg page to sql server 2011

    Or you could try ASP.NET, since most of you here seem to like VB.NET so much.

  10. #10
    RoRivals gaby001 is offline
    MemberRank
    Aug 2011 Join Date
    RomaniaLocation
    386Posts

    Re: how to conect the reg page to sql server 2011

    ok now i undestend ty i go whach some tutorial and i wil rezolve

  11. #11
    You got reported! :o Kasistar is offline
    MemberRank
    Oct 2011 Join Date
    647Posts

    Re: how to conect the reg page to sql server 2011

    whatever.... good luck

  12. #12
    The Worst One inetpub is offline
    MemberRank
    Oct 2012 Join Date
    C:Location
    232Posts

    Re: how to conect the reg page to sql server 2011

    For example:
    Code:
    <?php
    
    if(!function_exists('mssql_connect')){
    	echo 'You must have the php_mssql library for Apache installed and enabled to connect to an MSSQL database.  Uncomment the line that says extension=php_mssql.dll in your php.ini (XAMPP/WAMP only).  This requires a restart of the Apache service to take effect.'; die();
    }
    // Database configuration 
    $db_host = ''; //host
    $db_user = ''; //user
    $db_pass = ''; //pass
    
    
    $conn = @mssql_connect($db_host,$db_user,$db_pass) or die('Error! Please contact me, thanks!');
    $db = @mssql_select_db('atum2_db_account',$conn) or die('Error! Please contact me, thanks!^^');
    ?>
    its only connect script, all mssql query's do yourself

  13. #13
    Banned St0rmy95 is offline
    BannedRank
    Jun 2011 Join Date
    0x604769Location
    202Posts

    Re: how to conect the reg page to sql server 2011

    Yes and then write a register script like this:
    Code:
    INSERT INTO atum2_db_account.dbo.td_Account (AccountUniqueNumber, AccountName, Password) VALUES ('$n', '$userid', '$passMd5')

  14. #14
    The Worst One inetpub is offline
    MemberRank
    Oct 2012 Join Date
    C:Location
    232Posts

    Re: how to conect the reg page to sql server 2011

    Or change a AccountUniqueNumber column (set 'Is Identity' and primary key) , then you can do smth like that:

    Code:
    //query string
    $qry123 = "INSERT INTO [atum2_db_account].[dbo].[td_Account](AccountName, Password) VALUES ('$username','$password',)";
    $result123 = mssql_query($qry123); //execute query
    + some simple check data (no double accname for ex) and simple form


    Code:
    <?php
    
    if(!function_exists('mssql_connect')){
    	echo 'You must have the php_mssql library for Apache installed and enabled to connect to an MSSQL database.  Uncomment the line that says extension=php_mssql.dll in your php.ini (XAMPP/WAMP only).  This requires a restart of the Apache service to take effect.'; die();
    }
    // Database configuration 
    $db_host = ''; //host
    $db_user = ''; //user
    $db_pass = ''; //pass
    
    
    $conn = @mssql_connect($db_host,$db_user,$db_pass) or die('Error! Please contact me, thanks!');
    $db = @mssql_select_db('atum2_db_account',$conn) or die('Error! Please contact me, thanks!^^');
    
    $err_string = array();
    
    if(isset($_POST) && !empty($_POST)){
    $username = $_POST["user"];
    $password = $_POST["pass"];
    $result = @mssql_query("SELECT AccountName FROM atum2_db_account.dbo.td_Account WHERE AccountName = '$username'") or die('Error! Please contact me, thanks!');
    if(mssql_num_rows($result)){
    		$err_string[] = 'Username Allready exist.';
    	}
    
    if(count($err_string) == 0){
    $qry123 = "INSERT INTO [atum2_db_account].[dbo].[td_Account](AccountName, Password) VALUES ('$username','$password',)";
    $result123 = mssql_query($qry123); //execute query
    }
    }
    ?>
    //show error
    <?php if(count($err_string)){ ?>
    <?php foreach($err_string as $err_string){ ?>
    <?php echo $err_string; ?>
    <?php } ?>
    <?php } ?>
    
    <form action="#" method="post">
    <input type="text" name="user" />
    <div style="height: 5px;">&nbsp;</div>
    <input type="password" name="pass" />
    <div style="height: 5px;">&nbsp;</div>
    <input type="submit" id="submit" value="Register"/>
    </form>
    its for example ofc.

  15. #15
    RoRivals gaby001 is offline
    MemberRank
    Aug 2011 Join Date
    RomaniaLocation
    386Posts

    Re: how to conect the reg page to sql server 2011

    i ghyve up i cant conect the reg page to mySQL i tri all u post but stil cant make this any one have a totorial i go to my slq home pahe i read stil can make this so if u have a tutorial ... question i ned to make a conexion with ODBC ?
    like how i make in global. cfg like My sql_dns ????? conect with user and pass ????
    Last edited by gaby001; 27-01-13 at 10:35 PM.



Page 1 of 2 12 LastLast

Advertisement