Ok I actually have one more question.
Your script works perfect, but there's something I dont really know.
I have a a tempalte aclled "index". In the index template theres a variable called "$news". The $news veriable should be replace with a tempalte called "news". That template looks something like this:
HTML Code:
<blockquote class="go">
<p>
<h3>$title</h3> - <h5>posted: $date</h5>
</p>
<p>
$content
</p>
</blockquote>
Now.... $title, $date, and $content should be replaced with the content from three columns (with the same names) from a table called "news". I dont know if this is the right way to do it, but I just assumed that I had to have a news template since that one is gonna be looped over and over (total amount of times depends on how many news entries there are). If I put those three variables directly in the index template, everything in there will be looped. How would I go on doing this?
Thank yuo so much for taking the time!
Niklas