...
Just change line 16 to:
Code:if($exec)
...
Just change line 16 to:
Code:if($exec)
I have no idea why you're trying to use this for anything, but here:
Code:<?php $conf['db_host'] = ".\SQLEXPRESS"; $conf['db_user'] = ""; $conf['db_pass'] = ""; $conf['db_name'] = "Account"; $user = sql_clean($_GET['Username']); $passhash = sql_clean($_GET['Password']); $con = mssql_connect($conf['db_host'],$conf['db_user'],$conf['db_pass']) or die('Database connect Fail.'); $db = mssql_select_db($conf['db_name'], $con) or die('Database Init Fail.'); $exec = mssql_query("SELECT sUserPW FROM tUser where sUserID = '$user'"); if($exec) { if(mssql_num_rows($exec) != 1) { die('Account Not Found.'); } $AccountData = mssql_fetch_assoc($exec); $PlaintxtPass = $AccountData['sUserPW']; if (MD5($PlaintxtPass) == $passhash) { die('OK'); } else { die('Wrong Password.'); } } else { die('Query Failed'); } mssql_close(); function sql_clean($str) { $search=array("\\","\0","\n","\r","\x1a","'",'"'); $replace=array("","","","","","",""); return str_replace($search,$replace,$str); } ?>
i will try to use this code
err again aff
Notice: Undefined index: Username in C:\wamp\www\Login.php on line 8
Notice: Undefined index: Password in C:\wamp\www\Login.php on line 9
Warning: mssql_connect() [function.mssql-connect]: Unable to connect to server: WIN-2VZMU0ST2PK\SQLEXPRESS in C:\wamp\www\Login.php on line 11
Database connect Fail.
err again aff
Notice: Undefined index: Username in C:\wamp\www\Login.php on line 8
Notice: Undefined index: Password in C:\wamp\www\Login.php on line 9
Warning: mssql_connect() [function.mssql-connect]: Unable to connect to server: **************\SQLEXPRESS in C:\wamp\www\Login.php on line 11
Database connect Fail.
ok ok always erro
delete post pls. :3
I have an idea Bruna157, suck it up and purchase a launcher from iStu. It's so much easier than what your doing. 0.o
Yes pls. Money money money.
I dontknown why is so dificult for some people to read the errors