Here's my code, it won't work, is it my code or the server?
<?
// includes
include("conf.php");
// open database connection
$connection = mysql_connect($host, $user, $pass) or die ("Unable to connect!");
// select database
mysql_select_db($db) or die ("Unable to select database!");
// generate and execute query
$query = "SELECT id, headline, story FROM news ORDER BY id DESC LIMIT 0, 10";
$result = mysql_query($query) or die ("Error in query: $query. " . mysql_error());
// get resultset as object
$row = mysql_fetch_object($result);
// print details
if ($row)
{
?>
<font class="headlineText"><? echo $row->headline; ?></font>
<br>
<font class="storyText"><? echo $row->story; ?></font>
<?
}
else
{
?>
<p>
<font class="storyText">This story could not be located in our database.</font>
<?
}
// close database connection
mysql_close($connection);
?>