$dbhost = 'localhost';
$dbuser = 'mbfarmb_mbfarmb';
$dbpass = 'abryant11';
$dbname = 'mbfarmb_mbfarmb';
$conn = mysql_connect($dbhost, $dbuser, $dbpass) or die ('Error connecting to mysql');
mysql_select_db($dbname);
?>
Warning: mysql_query(): Access denied for user ''@'localhost' (using password: NO) in /var/www/vhosts/meadowbrookfarmbedandbreakfast.com/meadowbrookfarmbedandbreakfast.com/news_events.php on line 12
Warning: mysql_query(): A link to the server could not be established in /var/www/vhosts/meadowbrookfarmbedandbreakfast.com/meadowbrookfarmbedandbreakfast.com/news_events.php on line 12
Please select one of News or Event items below for more information... |
|
require($_SERVER['DOCUMENT_ROOT']."/includes/dbconn.php"); ?>
$sql = "select * from bulletins order by id DESC LIMIT 4";
$sqlresult = mysql_query($sql);
$i=1;
?>
while($record = mysql_fetch_array($sqlresult, MYSQL_ASSOC))
{
?> >
echo $record['bulletin_date']; ?> |
echo $record['bulletin_headline']; ?> |
echo substr($record['bulletin_desc'], 0, 90); ?>... |
more details |
}
?>
== See all News/Events ==
mysql_close();
?>
For more details and News and Events
please Contact Us
|