Artenis Posted August 1, 2008 Report Share Posted August 1, 2008 (edited) <div style="padding-left:10px;display:block;"> <?php while($row3 = mysql_fetch_assoc($r_text_page_k)){ if($row3['piesaiste']=='0'){ ?> <div style="width:100px;height:90px;display:block;float:left;font-family:Tahoma;font-size:10px;color:#666666;list-style-image:url('images/list_gr.jpg');"> <div style="cursor:pointer;display:block;" onClick="parent.location='?link=<?php echo $row3['id']; ?>'"><img src="images/list_gr.jpg" > <b><?php echo $row3['nosaukums']; ?></b></div> <?php while($row4 = mysql_fetch_assoc($r_text_page_l)){ ?> <div style="display:block;padding-left:15px;font-family:Tahoma;font-size:10px;color:#666666;cursor:pointer;" onClick="parent.location='?link=<?php echo $row4['id']; ?>'"><?php echo $row4['nosaukums']; ?></div> <?php } ?> </div> <?php } } ?> </div> Bildē var apskatīties kā man izvadās un kā vajag. if man tur nav iebāsts, jo, ieliekot if viņš izvada tikai konkrēos (pareizos), bet pie pirmās sadaļas (Par mums)... http://photos.fotki.lv/photos/4/W0002269/0...%23_Artenis.jpg $row4['l_id'] = $row3['piesaiste']; $row4[''s_id'] = $row3['id']; $row4[''s_id'] -> Vienam s_id atbilst pāŗis $row4['l_id'] vai $row3['piesaiste']; Tipa viss izvadās pie pirmās apakšsadaļās, kad uztaisu fetch erroru, tad gan aiziet pa skaisto un pie katras sadaļas izmet erroru nevis pie pirmās... Ceru, ka domu sapratā! :) Edited August 1, 2008 by Artenis Link to comment Share on other sites More sharing options...
andrisp Posted August 1, 2008 Report Share Posted August 1, 2008 Tur, kur tu dabū $row4, tev vajag katrai virssadaļai jaunu kveriju taisīt ar WHERE parent_id = $row3['id'] Link to comment Share on other sites More sharing options...
Artenis Posted August 1, 2008 Author Report Share Posted August 1, 2008 Bučas atkal tev! :) Paldies... Link to comment Share on other sites More sharing options...
Recommended Posts