Jump to content

Nested repeat regions


dubfoundry

Recommended Posts

Ok im attempting a nested regions with php.. just to out put catalouge subcategory type ouput.

 

The categories prints out fine but only the first subcategory outputs the other categories have blank subcats...help?

 

here is my code

 

if(isset($_GET['upload'])&& !isset($_GET['edit_gal'])){

require_once('upload.php');

}elseif(isset($_GET['edit_gal'])){

 

//require_once('gal_edit.php');

echo "<h2>Edit Albums</h2> <br/>";

?>

<p> </p><?php do{ echo $gallery['gal_name'];?>

<span class="under_rule"></span>

<p> </p>

<?php do{ echo $subgal['gal_name'];?>

 

<?php }while($subgal = mysql_fetch_assoc($get_subgal));?>

    <p> </p><p> </p>

<span class="under_rule"></span>

 

<?php }while($gallery = mysql_fetch_assoc($get_gal));}?>

Link to comment
https://forums.phpfreaks.com/topic/167838-nested-repeat-regions/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.