Some code I suggest for GTQ.
- Locked due to inactivity on Aug 4, '16 4:27pm
Thread Topic: Some code I suggest for GTQ.
-
type into sql.
create table loginrecord (ip varchar(50), user varchar(20));
Then in the PHP. Where $user equals the user just logged in.
$data=mysql_query("SELECT * from loginrecord where user LIKE '".$user ."' and ip LIKE '".$_SERVER['REMOTE_ADDR'];'"';");
if(mysql_num_rows($data)>0){
mysql_query("INSERT INTO loginrecord(user,ip) values ('".$user."','".$_SERVER['REMOTE_ADDR'];."';");
}
So when their is a troll just go into the database and find other users operating on that ip, and ban the ip. -
remove the ; after $_SERVER['REMOTE_ADDR']
And replace the '"' with ."' -
I f---ing hate you...
-
I'm so happy that you're clever. I have no idea what any of this means (well I know some of it but not much ) but it looks cool XD *hugs for a clever geek *
-
Bump as extremely relevant.
-
Speak_Your_Mind NewbieJoker you're a smartass twelve year old who thinks he's all that just because he knows how to spell bad words (omg we must worship you :O)
So know let you reply with a cuss word you don't even know the meaning of. -
*Claps*
Well, well, well. I've been waiting for one such as yourself to compliment my writing. Thank you dearly for complimenting! Now, who the f--- are you again?
This man here is confused.
Btw, I know what all of my cuss-words stand for. Want me to explain? -
Still important, you can swap between mysqli querys and PDOs depending on the setup.
-
Identifying people who are using multiple accounts is a good idea and might be necessary.
Using PDO is definitely the best database access method!
This thread is locked, therefore no new posts can be made.