String consistency?

How can I maintain the consistency of the string in PHP, MySQL?

EG. if the

user type - hello world
string in database - hello world
retrieve using PHP (echo) - hello world

user type - <?php echo 'test' ?>
string in database - <?php echo 'test' ?>
retrieve using PHP (echo) - <?php echo 'test' ?>

user type - <?php echo $_POST['test'] ?>
string in database - <?php echo $_POST['test'] ?>
retrieve using PHP (echo) - <?php echo $_POST['test'] ?>

So I want to see the same string for User, and DBA.

Sponsor our Newsletter | Privacy Policy | Terms of Service