Register for your free account! | Forgot your password?

You last visited: Today at 00:54

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



MySQL Check

Discussion on MySQL Check within the Web Development forum part of the Coders Den category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Jul 2013
Posts: 139
Received Thanks: 25
MySQL Check

Hey,
ich möchte ein Login System mit HWID machen, doch da ich nicht wirklich jemals mit php gearbeitet habe, kommt nichts gescheites raus^^

Hier mal mein source:
PHP Code:
<?php 
require_once('db_config.php'); 
mysql_connect($host$user$pass); 
mysql_select_db($dbase); 
$Benutzername mysql_real_escape_string($HTTP_GET_VARS['user']); 
$Passwort mysql_real_escape_string($HTTP_GET_VARS['password']); 
$hwid mysql_real_escape_string($HTTP_GET_VARS['hwid']) 
$result mysql_query("SELECT password FROM users WHERE user='" $Benutzername "'"); 
$result2 mysql_query("SELECT hwid FROM users WHERE user='" $Benutzername "'"); 
$row mysql_fetch_row($result); 
$row2 mysql_fetch_row($result2); 
if (
$row

    
$getPasswort $row[0]; 
        if (
$Passwort == $getPasswort
        { 
            
$gethwid $row2[0]; 
                if (
$hwid == $gethwid
                { 
                    echo 
1
                } 
                else 
                { 
                    echo 
3
                } 
        } 
        else 
        { 
            echo 
2
        } 

else 

    echo 
0

?>
und in Worten was es machen soll:
In db einloggen
Aus adresszeile: User=, password=, hwid=
Nach User suchen, wenn nicht vorhanden echo 0
Zum user das pw suchen und überprüfen, falls nicht übereinstimmend echo 2
Zu richtigen login daten die hwid raussuchen, falls nicht übereinstimmend echo 3
Wenn alles richtig echo 1
Tiimä is offline  
Old 11/03/2013, 14:26   #2



 
Shawak's Avatar
 
elite*gold: 0
The Black Market: 259/0/0
Join Date: Apr 2010
Posts: 10,289
Received Thanks: 3,613
Benutz anstelle von $HTTP_GET_VARS einfach mal $_GET

Und in der Adresszeile [..]?user=<User>&password=<Password>&hwid=<HWID>
Shawak is offline  
Reply


Similar Threads Similar Threads
Mysql fehler 1130-Host 'xxxx' is not allowed to connect to this MySQL server
02/21/2017 - Metin2 Private Server - 3 Replies
Hallo Community, und zwar ich habe ein Problem wenn ich auf Navicat gehe und auf meiner DB zugreifen möchte steht dort Mysql fehler 1130-Host 'xxxx' is not allowed to connect to this MySQL server ich hoffe mir kannn jemand helfen oder mir es beheben..
Mysql fehler 1130-Host 'xxxx' is not allowed to connect to this MySQL server
10/18/2012 - Metin2 Private Server - 0 Replies
Ich brauche eure hilfe ich wollte einen P-server machen und benutzte Navicat für die DatenBank aber beim ersten mal ging es doch ich hatte dann die DB gelöscht,weil ich ein neues script hatte und dann wollte ich wieder eins machen aber es ging nicht so wie oben der Fehler ich bitte um hilfe danke :) aber bitte so schnell wie möglich um antwort danke Liebe Grüße : Silver2011
mysql real '192 .168.16.53 '(60) but check..
10/17/2011 - Metin2 Private Server - 1 Replies
hi all i configed my server and ok...navicat and putty connection work..but.. i run server after say '192 .168.16.53 '(60) why? 192.168.1.1 and 192.168.1.104 my config :-\ tell my what wrong?
MySQL Navicat 1130-Host'5.xxx.xx.xxx' is not allowed to connect to the MySQL Server
08/07/2010 - Metin2 Private Server - 14 Replies
Hallo com, ich habe ein Problem mit Navicat. Undzwar habe ich diesen Fehler hier : "1130-Host'5.xxx.xx.xxx' is not allowed to connect to the MySQL Server" seid gestern. Ich dachte mir mal ich änder mein Navicat Passwort um... Als ich dies getan habe, und meinen Server rebootet habe und Navicat neugestartet habe, und ich mich wieder in Navicat einloggen wollte kam diese Fehlermeldung. Nun habe ich das Problem das ich mich nicht mehr mit Navicat connecten kann. Habe schon alles versucht...
I need help whit Navicat Mysql check pls
03/25/2009 - Conquer Online 2 - 1 Replies
hey guys i have prob i'm trying to make new connection at navicat and i can't i get error when i try to open it look this image:http://img91.imageshack.us/img91/7963/errore sx.png:confused: i think some one must know to fix this pls help thanks:handsdown:



All times are GMT +1. The time now is 00:54.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.