But the content of the array gets wiped out mostly.
. . //snip . . $j=0; for ( $i=1; $i<=$num_rows; $i++ ) { $row = mysql_fetch_array($retid); if ( $category == $row["category"]) { $j=$j+1; $plaatjes=array( "html" => array ($j => $row["html"]), "kaart" => array ($j => $row["kaart"]), "alt" => array ($j=> $row["ALTtekst"]) ); print_r($plaatjes); // 26 elements with 3 keys each are in the array } } $page1=($page*15)-15; $number_pages=(floor($j/15)+1); for ($j=$page1+1; $j<=$page1+5; $j++) { echo $j; print_r($plaatjes); // only Array element [26] is left, the others are gone echo '<BR>'; } . . . //snip . .
I placed the echo and print_r commands in an attempt to find out what happens.
Probably a beginners mistake, but it's beginning to frustrate me.
Thanks for your time.