if the database doesn't allow people to have access in it.. you could just use two fields: one for password and one for the text
if the user enters the correct password the server returns the text
if the users have access to your database then <swene> has already answered you
you will need to encrypt the text and save it to the database as binary.. or as text in a form like 83F39B14 which will be the hexadecimal representation of the encrypted data
look in www.php.net for the encryption functions and you could use base64_encode() to translate the binary data to the hexadecimal numbers