Ok great and I found the answer to my problem now, lol At least one of them.

http://www.daniweb.com/web-developme...60#post1700560
Code:
$result = mysql_query("SELECT id,username,AES_DECRYPT('password','$sql') as password FROM accounts");