$connection = mysql_connect("localhost","root","tenthhouse") or die (mysql_error());;
$db = mysql_select_db("20yr", $connection) or die (mysql_error());;
$sql = "SELECT * FROM content ORDER BY id DESC";
$sql_result = mysql_query($sql, $connection) or die (mysql_error());;
while ($row = mysql_fetch_array($sql_result)) {
$id = $row["id"];
$title = $row["title"];
$author = $row["author"];
$text = $row["text"];
$text = str_replace("","
",$text);
$sentence = explode(".",$text);
echo "
$sentence[0]
|
";
}
?>