hs^
01-08-2006, 07:43 PM
Hello all.. i got a 'logical' problem, but im still a newbie, maybe someone can help please:)
this is the result problem..
the <fieldset> is not close, along some other tags...
I loop through a mysql query , and need to categorize it on 'bestelnummer'
so i did if (($product->bestelnummer)==$var) {
echo "<tr><td>bla</td></tr>";
}
else{
echo "<fieldset><table>";
$var = $product->bestelnummer;
}
it starts with this else... then sets $var to bestelnummer and loops if, but how would i close the fieldset??? i cant put it out the loop... that would be useless, in the else and it would immideate exit the fieldset also...
here is the code
http://www.rafb.net/paste/results/3skmkV56.html
and here is the problem in action:
http://img267.imageshack.us/img267/3400/untitled5pe.png
thanks :)
this is the result problem..
the <fieldset> is not close, along some other tags...
I loop through a mysql query , and need to categorize it on 'bestelnummer'
so i did if (($product->bestelnummer)==$var) {
echo "<tr><td>bla</td></tr>";
}
else{
echo "<fieldset><table>";
$var = $product->bestelnummer;
}
it starts with this else... then sets $var to bestelnummer and loops if, but how would i close the fieldset??? i cant put it out the loop... that would be useless, in the else and it would immideate exit the fieldset also...
here is the code
http://www.rafb.net/paste/results/3skmkV56.html
and here is the problem in action:
http://img267.imageshack.us/img267/3400/untitled5pe.png
thanks :)