snake310 Posted August 21, 2006 Share Posted August 21, 2006 Hellothis listing works fine , the only thing is that i dont want to list the same named thing twice, any1 has any idea if(!$get2) echo "<option>step 3</option>";$a=z;$id_tab=mysql_list_fields($get1,$get2,$id);$nr_col=mysql_num_fields($id_tab);@mysql_select_db($get1);$inter="SELECT model FROM $get2";$id_rez=mysql_query($inter);$row=mysql_num_rows($id_rez);while($rand=mysql_fetch_row($id_rez)) for($i=0;$i<$row;$i++){ for($n=$i;$n=0;$n--) if($rand[$i]=$rand[$n-1]) $a=$i; if($i!==$a) if($rand[$i]!=NULL) echo "<option>".$rand[$i]."</option>"; } if($_GET['list3']=NULL) echo "<option selected>Please Select</option>"; else echo "<option selected>".$get3."</option>";?>I sorry for makeing a new pst the same name but i accidentyly locked the other one Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.