How would you pull the title out of a table in PHP, i tried

<?php echo('$title'); ?>

which down below i have said what title is, how ever it display the file name instead.??