MySQL problem - Custom code will always login (even if account does not exist)
#8

Quote:
Originally Posted by Djole1337
Посмотреть сообщение
wait what...
if no rows -> login

it should be
if (rows) // login dialog
else // register dialog

also don't fetch the whole table... you can do something like
Код:
select count(*) from `Users` where `Account` = '%s' limit 0,1;
That, also, the query will fail because unthreaded queries are not supported by R7. As I already said you need to thread it into a function and use the cache data.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)