Quote:
Originally Posted by sebbe
What type of homepage is it?
Assuming it's a non-vB one:
PHP Code:
$conn = mysql_connect("localhost", "username", "password") or die(mysql_error()); $query = "SELECT pagetext FROM post ORDER BY dateline DESC LIMIT 1"; $result = mysql_query($query) or die(mysql_error()); while (list($pagetext = mysql_fetch_array($result))) { echo $pagetext; }
Please note that this is the simplest possible way and will only output the latest post text and nothing else. You might have to add a table prefix also if you use any.
|
doesnt work, it just displays that whole code on my homepage template