I made login/register script and on my localhost everything work ok, but when I upload script to server then when I use mysql_real_escape function I get empty string. Why is this function different on localhost and real server. This is my code
//functions.php
<?php
function clean($data){
return mysql_real_escape_string($data);
}
?>
//otherFile.php
<?php
include 'functions.php';
$user = $_POST['username'];
$pass = encrypt($_POST['password']);
$rem = $_POST['remember'];
$user = clean($user);
$pass = clean($pass);
$rem = clean($rem);
?>