Okay, I'm struggling here.
I put this into a new file called "random_content.php"
<?
$file = file('random_content.txt');
$random_5 = array_rand($file, 5);
foreach ($random_5 as $value)
{
echo $value . '<br>';
}
?>
And my "random_content.txt" looks like this:
<LI>Blah blah</LI>
<LI>Blah, blah, blah</LI>
<LI>More blah blah</LI>
<LI>Even more blah blah</LI>
<LI>A bit of yadda yadda</LI>
<LI>Yadda</LI>
<LI>Blah</LI>
<Yadda Blah blah</LI>
And I insert this into my template "locksmithtowntemplate.php":
<?php
include('random_content.php');
$pagetitle = "$town $zip $state ($stabv) Locksmith Service";
$articletitle = "$town $zip Locksmith Service";
$keywords = "locksmith, locksmiths, $town, $county, $zip, $state";
$description = "We are locksmiths servicing $town $zip, $state. Locksmith contact information and a service request form is on this page.";
$mappic = "<CENTER>
<img src='images/$map' width='300' height='229' alt='Map of $town $zip $state'>
</CENTER>
<BR>
<P>Some services preformed are:
<UL>
$value
</UL>";
?>
Here is a sample page:
http://www.monkeywithatypewriter.com/calverton_virginia_locksmith.php
The random content is to be right under the map.
All I'm getting is numbers and they're not in the proper place.