[RELEASE] Simple register (Works 100%)

Page 1 of 2 12 LastLast
Results 1 to 25 of 27
  1. #1
    Member Rbit is offline
    MemberRank
    Mar 2008 Join Date
    EstoniaLocation
    59Posts

    [RELEASE] Simple register (Works 100%)

    It works on Xampp and appserv 100%, i have tested it out!
    I know there is like this, but this is based on BR (Lg, Kekku) Database

    Its made by Wizkidje

    He gaved it to me, so i release it for thouse ppl who needs!
    Attached Files Attached Files
    Last edited by Rbit; 31-03-08 at 12:49 PM.


  2. #2
    Apprentice Roxas is offline
    MemberRank
    Sep 2007 Join Date
    8Posts

    Re: [RELEASE] Simple register (Works 100%)

    good job.

  3. #3
    Member sherwinlfc is offline
    MemberRank
    Nov 2007 Join Date
    68Posts

    Re: [RELEASE] Simple register (Works 100%)

    how do you use it? zz instructions please~

  4. #4
    Member Rbit is offline
    MemberRank
    Mar 2008 Join Date
    EstoniaLocation
    59Posts

    Re: [RELEASE] Simple register (Works 100%)

    Quote Originally Posted by sherwinlfc View Post
    how do you use it? zz instructions please~
    Download Xampp

    Then edit index.php with notepad, put your information!
    Then put it to htdocs folder in Xampp folder!

    Then open web browser and type localhost or 127.0.0.1

  5. #5
    Proficient Member Jaycub is offline
    MemberRank
    Nov 2007 Join Date
    162Posts

    Re: [RELEASE] Simple register (Works 100%)

    So if it is 127.0.0.1.. hoow the hell do other people register

  6. #6
    Member Rbit is offline
    MemberRank
    Mar 2008 Join Date
    EstoniaLocation
    59Posts

    Re: [RELEASE] Simple register (Works 100%)

    [quote=Jaycub;3244541]So if it is 127.0.0.1.. hoow the hell do other people register
    Last edited by Rbit; 31-03-08 at 12:27 PM.

  7. #7
    Account Upgraded | Title Enabled! Amandy is offline
    MemberRank
    Feb 2007 Join Date
    Crapvile, USALocation
    768Posts

    Re: [RELEASE] Simple register (Works 100%)

    The host should be Jacob\SQLEXPRESS

  8. #8
    Proficient Member Jaycub is offline
    MemberRank
    Nov 2007 Join Date
    162Posts

    Re: [RELEASE] Simple register (Works 100%)

    There rlly isnt a password for it..

    When i connect to database it just says
    connecting to server : Laptop1/sqlexpress
    user : Laptop1/Jacob
    password:

    The password is blank

  9. #9
    Banned MAXTRAXv3 is offline
    BannedRank
    Jan 2007 Join Date
    Perth, WesternLocation
    2,252Posts

    Re: [RELEASE] Simple register (Works 100%)

    works for me on Wamp and Xampp

  10. #10
    Account Upgraded | Title Enabled! NarutoUzamaki is offline
    MemberRank
    Jan 2008 Join Date
    In a big condom, where else?Location
    232Posts

    Re: [RELEASE] Simple register (Works 100%)

    Nice release thnx :D. =p.

  11. #11
    Member Rbit is offline
    MemberRank
    Mar 2008 Join Date
    EstoniaLocation
    59Posts

    Re: [RELEASE] Simple register (Works 100%)

    Quote Originally Posted by Antv912 View Post
    The host should be Jacob\SQLEXPRESS
    Yeah, thanks for correct my mistake :P

  12. #12
    Praise the Sun! Solaire is offline
    MemberRank
    Dec 2007 Join Date
    Undead BurgLocation
    2,862Posts

    Re: [RELEASE] Simple register (Works 100%)

    Ty for giving credits.

  13. #13
    Member redhellhound is offline
    MemberRank
    Sep 2007 Join Date
    BC, Canada! EHLocation
    99Posts

    Re: [RELEASE] Simple register (Works 100%)

    you should of made the password when you installed mssql lol. and it should be on sql auth not windows.

  14. #14
    Praise the Sun! Solaire is offline
    MemberRank
    Dec 2007 Join Date
    Undead BurgLocation
    2,862Posts

    Re: [RELEASE] Simple register (Works 100%)

    Zzzz, it must be that otherwise your whole gunzserver will not work.

  15. #15
    Proficient Member Jaycub is offline
    MemberRank
    Nov 2007 Join Date
    162Posts

    Re: [RELEASE] Simple register (Works 100%)

    IS THEIR A WAY TO RE-GET MY PASSWORD FOR MYSQL BACK ? COZ I DONT THINK I CAN REMEMBER IT !

    Error :
    Code:
     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:\wamp\www\index.php on line 5
    Couldn't connect to the database, we're sorry...

    In index :
    Code:
    <?php 
    $dns="GunZDB";
    $user="Jacob\SQLEXPRESS";
    $pass="";
    $connect=odbc_connect($dns, $user, $pass) or die ("Couldn't connect to the database, we're sorry...");
    odbc_exec($connect,"use GunzDB");
    
    function antisql($bericht){
    $bericht = stripslashes($bericht); 
    $bericht = htmlspecialchars($bericht); 
    $bericht = nl2br($bericht); 
    return $bericht;
    }
    
    if(isset($_GET['action']) AND $_GET['action'] == "register"){
    
    if(empty($_POST['username'])){
    $error.="No username filled!<br>";
    }
    
    if(empty($_POST['password'])){
    $error.="No password filled!<br>";
    }
    
    if(empty($_POST['email'])){
    $error.="No e-mail filled!<br>";
    }
    
    if(empty($_POST['name'])){
    $error.="No name filled!<br>";
    }
    
    if(empty($_POST['age'])){
    $error.="No age filled!<br>";
    }
    
    if($error == TRUE){
    echo "<br><br><center>There are some troubles while registering your account:<br>".$error."</center><br>";
    die();
    }
    
    else
    {
    $regdate = date("Y-m-d H:i:s");
    $email = antisql($_POST['email']);
    $reg = "INSERT INTO Account (UserID, UGradeID, PGradeID, RegDate, Email, Age, Name) VALUES ('".antisql($_POST['username'])."', '1', '1', '$regdate', '$email', '".antisql($_POST['age'])."', '".antisql($_POST['name'])."')";
    $query = odbc_exec($connect,$reg);
    $gebruiker1 = "SELECT AID FROM Account WHERE UserID='".antisql($_POST['username'])."'";
    $gebruiker = odbc_exec($connect,$gebruiker1);
    $i=1;
    while (odbc_fetch_row($gebruiker, $i)){
    $aid = odbc_result($gebruiker, 'AID');
    $i++;
    }
    if (!$aid)
    {
    die ("Oeps, something's wrong with the database");
    }
    $reg2 = "INSERT INTO Login (UserID, AID, Password) VALUES ('".antisql($_POST['username'])."', '$aid', '".antisql($_POST['password'])."')";
    $query = odbc_exec($connect,$reg2);
    print ("<center>Your account is succesfully created!</center>");
    }
    }
    ?>
    <center><b>You can register a IMP Gunz account right here:</b><br><br>
    <?php echo "<form action='".$_SERVER['PHP_SELF']."?action=register' method='POST'>"; ?>
    <tr>
    <td align=center height='24'>Username</td>
    <td align=center height='24'><input type='text' name='username'></td>
    </tr>
    <br>
    <tr>
    <td align=center height='24'>Password</td>
    <td align=center height='24'><input type='password' name='password'></td>
    </tr>
    <br>
    <tr>
    <td align=center height='24'>E-mail&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>
    <td align=center height='24'><input type='text' name='email'></td>
    </tr>
    <br>
    <tr>
    <td align=center height='24'>Name&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>
    <td align=center height='24'><input type='text' name='name'></td>
    </tr>
    <br>
    <tr>
    <td align=center height='24'>Age&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>
    <td align=center height='24'><input type='text' name='age'></td>
    </tr>
    <br>
    <tr>
    <td align=center height='24'></td>
    <td align=center height='24'><input type='submit' value='Register!'></td>
    </tr>
    </form>

  16. #16
    Member Rbit is offline
    MemberRank
    Mar 2008 Join Date
    EstoniaLocation
    59Posts

    Re: [RELEASE] Simple register (Works 100%)

    Quote Originally Posted by Jaycub View Post
    IS THEIR A WAY TO RE-GET MY PASSWORD FOR MYSQL BACK ? COZ I DONT THINK I CAN REMEMBER IT !

    Error :
    Code:
     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:\wamp\www\index.php on line 5
    Couldn't connect to the database, we're sorry...

    In index :
    Code:
    <?php 
    $dns="GunZDB";
    $user="Jacob\SQLEXPRESS";
    $pass="";
    $connect=odbc_connect($dns, $user, $pass) or die ("Couldn't connect to the database, we're sorry...");
    odbc_exec($connect,"use GunzDB");
     
    function antisql($bericht){
    $bericht = stripslashes($bericht); 
    $bericht = htmlspecialchars($bericht); 
    $bericht = nl2br($bericht); 
    return $bericht;
    }
     
    if(isset($_GET['action']) AND $_GET['action'] == "register"){
     
    if(empty($_POST['username'])){
    $error.="No username filled!<br>";
    }
     
    if(empty($_POST['password'])){
    $error.="No password filled!<br>";
    }
     
    if(empty($_POST['email'])){
    $error.="No e-mail filled!<br>";
    }
     
    if(empty($_POST['name'])){
    $error.="No name filled!<br>";
    }
     
    if(empty($_POST['age'])){
    $error.="No age filled!<br>";
    }
     
    if($error == TRUE){
    echo "<br><br><center>There are some troubles while registering your account:<br>".$error."</center><br>";
    die();
    }
     
    else
    {
    $regdate = date("Y-m-d H:i:s");
    $email = antisql($_POST['email']);
    $reg = "INSERT INTO Account (UserID, UGradeID, PGradeID, RegDate, Email, Age, Name) VALUES ('".antisql($_POST['username'])."', '1', '1', '$regdate', '$email', '".antisql($_POST['age'])."', '".antisql($_POST['name'])."')";
    $query = odbc_exec($connect,$reg);
    $gebruiker1 = "SELECT AID FROM Account WHERE UserID='".antisql($_POST['username'])."'";
    $gebruiker = odbc_exec($connect,$gebruiker1);
    $i=1;
    while (odbc_fetch_row($gebruiker, $i)){
    $aid = odbc_result($gebruiker, 'AID');
    $i++;
    }
    if (!$aid)
    {
    die ("Oeps, something's wrong with the database");
    }
    $reg2 = "INSERT INTO Login (UserID, AID, Password) VALUES ('".antisql($_POST['username'])."', '$aid', '".antisql($_POST['password'])."')";
    $query = odbc_exec($connect,$reg2);
    print ("<center>Your account is succesfully created!</center>");
    }
    }
    ?>
    <center><b>You can register a IMP Gunz account right here:</b><br><br>
    <?php echo "<form action='".$_SERVER['PHP_SELF']."?action=register' method='POST'>"; ?>
    <tr>
    <td align=center height='24'>Username</td>
    <td align=center height='24'><input type='text' name='username'></td>
    </tr>
    <br>
    <tr>
    <td align=center height='24'>Password</td>
    <td align=center height='24'><input type='password' name='password'></td>
    </tr>
    <br>
    <tr>
    <td align=center height='24'>E-mail&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>
    <td align=center height='24'><input type='text' name='email'></td>
    </tr>
    <br>
    <tr>
    <td align=center height='24'>Name&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>
    <td align=center height='24'><input type='text' name='name'></td>
    </tr>
    <br>
    <tr>
    <td align=center height='24'>Age&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>
    <td align=center height='24'><input type='text' name='age'></td>
    </tr>
    <br>
    <tr>
    <td align=center height='24'></td>
    <td align=center height='24'><input type='submit' value='Register!'></td>
    </tr>
    </form>


    Dude! Just reinstall SQL!

  17. #17
    Proficient Member Jaycub is offline
    MemberRank
    Nov 2007 Join Date
    162Posts

    Re: [RELEASE] Simple register (Works 100%)

    SQL = MYSql ??

    Does it depend on which version ?

  18. #18
    Apprentice xXPointBlankxXx is offline
    MemberRank
    Mar 2008 Join Date
    23Posts

    Re: [RELEASE] Simple register (Works 100%)

    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\index.php on line 5
    Couldn't connect to the database, we're sorry...

    i use my ip address when i go into the html and thats what it shows, i use my ip address on my servers instead of 127.0.0.1, what am i doing wrong?

    i have dns: GunzDB
    user: sa
    pass: my pass (i dont want to release it to every1) so what am i doing wrong?

  19. #19
    Banned MAXTRAXv3 is offline
    BannedRank
    Jan 2007 Join Date
    Perth, WesternLocation
    2,252Posts

    Re: [RELEASE] Simple register (Works 100%)

    JayNub you need to reinstall MSSQL (not MYSQL)...

    xXPointBlankxXx you forgot to do part of the tut

  20. #20
    Who is the cow! sari4ever is offline
    MemberRank
    Apr 2007 Join Date
    Holy LandLocation
    790Posts

    Re: [RELEASE] Simple register (Works 100%)

    same problem like xxpointblackxxx

  21. #21
    Proficient Member Jaycub is offline
    MemberRank
    Nov 2007 Join Date
    162Posts

    Re: [RELEASE] Simple register (Works 100%)

    Quote Originally Posted by MAXTRAXv3 View Post
    JayNub

    Im sorry.. im sure that YOU Asked questions aswell...


    I dont waste money on taking classes like coding so i dont know what some of these terms r

    Im only learning so get the Hell of my Back !!!

    Question : Is MYSQL Needed at all ?

    Ok Now seriously.. THERE IS NO.. NO !!! PASSWORD !!

    Last edited by Jaycub; 05-04-08 at 02:25 PM.

  22. #22
    Apprentice Uzi910 is offline
    MemberRank
    Apr 2007 Join Date
    17Posts

    Re: [RELEASE] Simple register (Works 100%)

    Quote Originally Posted by Jaycub View Post
    Im sorry.. im sure that YOU Asked questions aswell...


    I dont waste money on taking classes like coding so i dont know what some of these terms r

    Im only learning so get the Hell of my Back !!!

    Question : Is MYSQL Needed at all ?

    Ok Now seriously.. THERE IS NO.. NO !!! PASSWORD !!

    he means you should of chose the other option not windows authentication

  23. #23
    Proficient Member Jaycub is offline
    MemberRank
    Nov 2007 Join Date
    162Posts

    Re: [RELEASE] Simple register (Works 100%)

    Quote Originally Posted by Uzi910 View Post
    he means you should of chose the other option not windows authentication

    Why didnt he just say that :)

    Now. THAT I understand ! :sweatdrop

  24. #24
    Enthusiast killerbros2 is offline
    MemberRank
    Oct 2007 Join Date
    31Posts

    Re: [RELEASE] Simple register (Works 100%)

    yea u shoulda chose other option. and i thoaght pw is supposed 2 b ur computer name lol

  25. #25
    Apprentice SilentVoice is offline
    MemberRank
    Jun 2008 Join Date
    RussiaLocation
    9Posts

    Re: [RELEASE] Simple register (Works 100%)

    Code:
    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\index.php on line 5
    Couldn't connect to the database, we're sorry...
    if you got this problem - make sure that you created SYSTEM DNS, not USER DNS

    and sorry if my english bad -_-



Page 1 of 2 12 LastLast

Advertisement