autoit and mysql login/register forms

09/11/2012 13:23 fear-x#1
ive been trying to create login form in autoit with mysql... and it logins nomater what you enter...


Code:
$SQL = _MySQLConnect($Connection[2], $Connection[3], "mydb", $Connection[0])
			If @error Then MsgBox(0, "", "failed")
			$VerifyLoginInp = _Query($SQL, "SELECT username FROM accounts WHERE 'username' = '"&guictrlread($usernamelogin)&"'")
			If GUICtrlRead($UsernameLogin) = $VerifyLoginInp Then
			MsgBox(0, "", "KKKKKKKKKK")
;~ 			Exit
			EndIf
			Exit

any1 can help ?
09/12/2012 13:38 omer36#2
what will $VerifyLoginInp return?