Forum Moderators: coopster
I thought about putting the quotes into an array, but didn't know how to go about it!
Heres the script below:
<?php
$quotes[] = "The main purpose of the site was to have something where people can check us out and hopefully hire us! But somecompany took it a stage further, they promoted us in so many ways that we are getting requests
for gigs on a daily basis! If it wasn‘t for somecompany, we would probably all be working in Mc Ds!¦cl¦Rob Drake, Clarity";
$quotes[] = "Our organisation needed a base where we could start our campaign from. somecompany helped us find the best solution for us in terms of a website. They created a full CMS system so that we could have site members posting new news as well as guests registering their comments. Their performance and understanding of the subject is fantastic. They presented many concepts to us and help us find the right one for us¦ocnd¦Tahrir Swift, Orpington CND";
if ($quotesvar)
{
// query....?
}
else {
srand ((double) microtime() * 1000000);
$randomquote = rand(0,count($quotes)-1);
$bits = explode('¦',$quotes[$randomquote]);
echo '<span class="quote">"...'.$bits[0].'..." - <a accesskey="q" href="/index.php?goto=cl_'.$bits.'" title="'.$bits[2].'">'.$bits[2].'</a></span>'; Any thanks will be appreciated! [1][edited by: jatar_k at 11:32 pm (utc) on Dec. 17, 2004]
}
?>
[edit reason] generalized company name [/edit]