marisbag Posted April 9, 2008 Report Share Posted April 9, 2008 (edited) Sveiki! Man ir nepiecieshams izveidot drop down filtru ar kuru vareetu izfiltreet tabulu peec 2 parametriem. Grupa un Kategorija, bet nepiecieshams arii lai izveeloties grupu- kategorijas dropaa paliktu tikai atlikushaas iespeejas. Jau ieprieksh paldies:) Edited April 9, 2008 by marisbag Link to comment Share on other sites More sharing options...
NiTrino Posted April 9, 2008 Report Share Posted April 9, 2008 (edited) kategorijaam jaabut piesaistiitaam grupaam ar kaut kaadu groupid var parentid. izveloties grupu, tu kaut kadaa veidaa selectam, kas atgriezh kategorijas padod WHERE groupid = $groupid <select name="groupid" onchange="document.location.href='?groupid='+this.value"> <!-- te izvadas grupas !--> </select> <select name="catid"> <? $groupid = intval ($_GET['groupid']); if ($groupid) { $res = mysql_query ("SELECT * FROM tabule WHERE groupid = ".$groupid); //... // talak pats tiksi galaa } ?> <!-- te izvadas kategorijas !--> </select> Edited April 9, 2008 by NiTrino Link to comment Share on other sites More sharing options...
marisbag Posted April 9, 2008 Author Report Share Posted April 9, 2008 paldies:) Link to comment Share on other sites More sharing options...
Recommended Posts