That clairifies it much more
I made these changes:
index.php
<a href=\"$title.html\">View full story</a>
htaccess:
RewriteEngine On
#RewriteRule ^([0-9]+).html$ fullstory.php?id=$1
RewriteRule ^([a-z-]+).html$ fullstory.php?id=$1
and it is not working as you suggested, now maybe you were just showing an example:
here is the fullstory.php:
<?php
if (is_numeric ($_GET['id']) )
{
// Define the query.
//$query = "SELECT blog_id, title, entry, DATE_FORMAT(date_entered, '%M %e, %Y') AS formatted_date FROM blog_entries WHERE blog_id={$_GET['id']}";
$query = "SELECT blog_id, title, entry, DATE_FORMAT(date_entered, '%M %e, %Y') AS formatted_date FROM blog_entries WHERE title={$_GET['id']}";
if ($r = mysql_query ($query)) // Run the query.
{
$row = mysql_fetch_array ($r); // Retrieve the information.
// Make the form.
list($id, $title, $entry, $date) = $row;
//$date = date("F d, Y");
$title = htmlspecialchars($title);
$entry = nl2br($entry);
echo "<h2>{$title}</h2>{$date}<br />
<p>{$entry}<br /></p><br />
";
}
else // Couldn't get the information.
{
echo "<p>Could retrieve the entry because: <b>" . mysql_error() . "</b>. The query was $query.</p>";
}
}
else // No ID set.
{
echo '<p><b>You must have made a mistake in using this page.</b></p>';
}
?>
void_function, I really appreciate all the help and time you are taking to help me try and resolve this, really! Thanks! 😃