I tried to use the ENCODE function. My script is something like this:
if(!($insert = mysql_query("INSERT INTO ct_assistant VALUES(NULL,'$student_id','$a_username', ENCODE('$ct_assistant_pwd'))",$con)))
{
Error(sprintf("Internal Error %d:%s\n",mysql_errno(),mysql_error()));
exit();
}
but mysql gives me an error. Does anyone know why ?