3 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for Djmann1013

Hi. I am having trouble with this script: <?php $host="mysql.host.com"; // Host name $username="username"; // Mysql username $password="password"; // Mysql password $db_name="DB_NAME"; // Database name $tbl_name="table"; // Table name $myusername = $_SESSION['myusername']; // Session on login page, in a variable. // Connect to server and select databse. mysql_connect("$host", "$username", "$password")or …

Member Avatar for diafol
0
156
Member Avatar for Djmann1013

Hi, I am having trouble with this chunk of PHP script: <?php $deny = array("Example IP"); if (in_array ($_SERVER['REMOTE_ADDR'], $deny)) { header("location: http://www.google.com/"); exit(); } ?> It works fine, its just when I try to link to a file that has the $deny var, it wont work. I tried using …

Member Avatar for Djmann1013
0
242
Member Avatar for ryklon

Hi! I'm creating a feature for my software that bans the user for 10 minutes if he/she has failed to login thrice. The problem is, I don't know how to code that. I got ideas on how to do it but I don't know what predefined classes or functions to …

Member Avatar for ryklon
0
664

The End.