Hello, and thanks for the tip. I tried it though and got an error message when the page tried to load up.
Here's all my php script. I'd really appreciate it if you could let me know exactly what should go where. AS you can tell, I'm very new at all this!
Thanks again!
<?
// includes
include("conf.php");
include("functions.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 articletitle, articlelead, articletext FROM articles WHERE id = '$id'";
$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>
<p> <font face="Arial, Helvetica, sans-serif" size="3" color="#6666cc"><b>
<? echo $row->articletitle; ?>
</b> </font> <br>
<font face="Arial, Helvetica, sans-serif" size="2">
<? echo $row->articletext; ?>
</font>
<p> <font face="Arial, Helvetica, sans-serif" size="2">
<?
}
else
{
?>
</font>
<p> <font size="2" face="Arial, Helvetica, sans-serif"><i>The article
could not be located in the database</i>.</font> <font face="Arial, Helvetica, sans-serif" size="2">
<?
}
// close database connection
mysql_close($connection);
?>