Code: Select all
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '‡ÅÜÒVSkã'4÷‹O2 zW ,u^Üê[', '\”$«5Þ{' at line 2Code: Select all
$entry_sql = "INSERT INTO Users (login) VALUES(' " . encrypt($_POST[Username]) . " ')";Code: Select all
function encrypt($string)
{
global $master_key;
$iv_size = mcrypt_get_iv_size(MCRYPT_RIJNDAEL_256, MCRYPT_MODE_ECB);
$iv = mcrypt_create_iv($iv_size, MCRYPT_RAND);
return mcrypt_encrypt(MCRYPT_RIJNDAEL_256, $master_key, $string, MCRYPT_MODE_ECB, $iv);
}//encryptAny help would be much appreciated.
Thanks