the table is head the colunm is called body
<?php //show_site.php
// This script retrieves blog entries from the database.
// Address error handing.
ini_set ('display_error s', 1);
error_reporting (E_ALL & ~E_NOTICE);
// Connect and select.
if ($dbc = @mysql_connect ('localhost', 'username', 'password')) {
if (!@mysql_select _db ('username_tpp' )) {
die ('<p>Could select the database because: <b>' . mysql_error() .
'</b></p>');
}
} else {
die ('<p>Could not connect to MySQL because: <b>' . mysql_error() .
'</b></p>');
}
{
if ($show = SELECT body from home;)
print "<p><h3>{$show} </h3>
</p><hr />\n";
}
mysql_close(); // Close the database connection.
?>
<?php //show_site.php
// This script retrieves blog entries from the database.
// Address error handing.
ini_set ('display_error s', 1);
error_reporting (E_ALL & ~E_NOTICE);
// Connect and select.
if ($dbc = @mysql_connect ('localhost', 'username', 'password')) {
if (!@mysql_select _db ('username_tpp' )) {
die ('<p>Could select the database because: <b>' . mysql_error() .
'</b></p>');
}
} else {
die ('<p>Could not connect to MySQL because: <b>' . mysql_error() .
'</b></p>');
}
{
if ($show = SELECT body from home;)
print "<p><h3>{$show} </h3>
</p><hr />\n";
}
mysql_close(); // Close the database connection.
?>
Comment