$tpl->parse("founds", "FOUND", true);
while($array = mysql_fetch_assoc($result)){
$tpl->set_var("NAAM", $array["naam"]);
$tpl->set_var("LEVEL", $array["CExp"]);
$tpl->set_var("KILL", $array["Kills"]);
$tpl->set_var("DEATH",$array["Deaths"]);
$tpl->parse("entrys", "ENTRY", true);
}
I use this code for parsing my template, based on data i get from a database, i always lose the first row, (even if i adjust the mysql querry to something else)
Can someone here see why my code does this?
Thnax in advance
This is the querry btw
$query = "SELECT naam,CExp,Kills,Deaths FROM speler";
$result = @mysql_query($query) or die ("Fout bij opzoeken: ".mysql_error());
$array = mysql_fetch_array($result);