Helped him through teamviewer. He didnt do any debugging, just copy pasted my code. Problem was in some typos i made in my quick n dirty code.
Learn to debug.
Helped him through teamviewer. He didnt do any debugging, just copy pasted my code. Problem was in some typos i made in my quick n dirty code.
Learn to debug.
Interesting, addme on steam: http://steamcommunity.com/id/IzNoGoD/
no, i mean mysql user
WTF? Izno..
if(param==true)
{
/*...*/
if(param==false)
{
/*...*/
}
Create a UNIQUE key constraint in your mysql db. Then use a stored procedure (function) to create new accounts, which use a INSERT IGNORE. Then double-check on last_insert_id inside that function....
You can restrict double values with UNIQUE.
Your problem isn't the database, but how you process the results.
E.g.
case "register":
hasLogin = searchForLogin(username);
if...