I have a problem, it keeps showing the sectionid in every article of the article that was submitted last. So if the last article had sectionid 18 then the number 18 appears next to every single article, instead of the actual section if of the article. (This thread in not a continuation of my previous thread on a similar problem, so dont get mistaken) So how would i make it echo the sectionid for each of the article and not the same sectoionid of the last article.
Here is the code so far.
Code: Select all
<?php
$system=mysql_query("select * from mos_content") or die(mysql_error());
while ($donnee = mysql_fetch_array($system))
{ $sections = $donnee['sectionid'];
}
echo $sections;
?>