Jump to content

Archived

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

snake310

php mysql dtatabase listing help

Recommended Posts

Hello

this 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

Share this post


Link to post
Share on other sites

×

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.