22.12.2013, 08:38
Hello.
Im currently learning some stuffs in MySQL these days. I got lil problem in MySQL. so here is the code:
As you guys know, to fix error argument type mismatch (argument 2), We have to do format string and send that string to database. And i did in my code above. But im still getting that error. Did i make a fault?
I hope you guys would help me, as im new in MySQL
thank you
Im currently learning some stuffs in MySQL these days. I got lil problem in MySQL. so here is the code:
pawn Код:
public OnPlayerConnect(playerid)
{
new querry[64],pName[MAX_PLAYER_NAME];
GetPlayerName(playerid,pName,sizeof(pName));
format(querry,"SELECT `password` FROM `users` WHERE `username` = '%s'",pName);
mysql_query(querry);
mysql_store_result();
return 1;
}
I hope you guys would help me, as im new in MySQL
thank you