PHP -> SQL 2005 script new account

Results 1 to 6 of 6
  1. #1
    Enthusiast swdl is offline
    MemberRank
    Jul 2010 Join Date
    33Posts

    PHP -> SQL 2005 script new account

    anyone have some script php with connection Sql 2005 for make new accounts ?
    or can talk how make 1 simple.
    i tried make but i have results.


  2. #2
    Deny everything. Tsukasa is offline
    MemberRank
    Jun 2005 Join Date
    Net SlumLocation
    558Posts

    Re: PHP -> SQL 2005 script new account

    You either use PHP's ODBC features to create a ODBC connection and use odbc_exec to call ini3_py_account's SP_PANGYA_REGIST procedure or you use Microsoft's new sqlsrv PHP driver and use sqlsrv_execute instead. So basically... it's the same no matter what you do.

    Parse the return values for the stored procedure to ensure an account has been created and you'll be fine.

  3. #3
    Apprentice tumsaaa305 is offline
    MemberRank
    Oct 2010 Join Date
    15Posts

    Re: PHP -> SQL 2005 script new account

    You do it.
    Why do not you take it to share.

  4. #4
    Member fasa2008 is offline
    MemberRank
    Dec 2008 Join Date
    94Posts

    Re: PHP -> SQL 2005 script new account

    <?php

    $odbc_dsnname = "ini3_py_account";
    $odbc_dsnuser = "sa";
    $odbc_dsnpass = "passwordSA";



    $connection = odbc_connect($odbc_dsnname, $odbc_dsnuser, $odbc_dsnpass);

    if(!($connection))
    {
    echo ".";
    }
    else
    {
    echo "";

    Script config.php,
    just give an include
    Example:
    <?php
    include "config.php";
    ?>

  5. #5
    Apprentice xzkiller is offline
    MemberRank
    Oct 2010 Join Date
    15Posts

    Re: PHP -> SQL 2005 script new account

    I want to use php for web registration. plz+

  6. #6
    Deny everything. Tsukasa is offline
    MemberRank
    Jun 2005 Join Date
    Net SlumLocation
    558Posts

    Re: PHP -> SQL 2005 script new account

    Closed for becoming more and more of a request and begging thread.

    Learn PHP and write this yourself.



Advertisement