Unless I'm misunderstanding you, it sounds like the "print" or "echo" command are all you need. For example:
<?php
// open the database connection
mysql_connect("localhost","myusername","mypassword");
@mysql_select_db("mydatabasename") or die( "Unable to select database");
// read the data into a variable
$query = "select display_text from my_table";
$result = MYSQL_QUERY($query);
$display_text=mysql_result($result,0,"display_text");
// Make the HTML appear
print "$display_text";
?>