Ik wil een aantal resultaten opvragen en dan telkens elk veld aan een array toevoegen, met een for($i=0; $i < $checkNumber; $i++); Maar hoe pas ik dat in in een while-lus?
Of kan ik uit mijn mysql een resource-id opvragen, zodat die for-lus niet hoeft?
[code:1:3366bebcb9]$thisProductSQL = “SELECT titel, Body, url_title, Image, Section from nl_post n inner join category c WHERE n.catid = c.catid AND WHERE c.name =’”.$maincat."’ order by n.Posted DESC";
$thisProductResult = mysql_query($thisProductSql) or die(mysql_error());
$checkNumber = mysql_num_rows($thisProductResult);
if($checkNumber < 0){
while($thisProduct = mysql_fetch_array($thisProductResult)){
//Hierzo
}
} else {
}[/code:1:3366bebcb9]