First, i have use aes_encrypt to encrypt the password
Then i have use aes_decrypt to decrypt the password
The issue is when i try to echo out the data in a table using 
<?php echo $row['pass'];?>,  there'll be an error 
"Undefined index: pass in"
SQL insert
insert into username (userName,pass) values('$userName', aes_encrypt('$pass','k'))
SQL select
SELECT UserNameID,userName,aes_decrypt(pass,'k') from username
What went wrong?


 
     
    