php - SQL ORDER BY showing single value repeatedly -


i working in php , script sql database , want display names alphabetically when use order showing 1 name firm_name list. have attached image. please thank you.

 else {    $register=" select * registration_table  reg_id='".$reg."'";    $register="select * registration_table group firm_name ";    $exereg = $con->query($register);    $resreg=$exereg->fetch_assoc();    // while($resreg= mysqli_fetch_array($exereg)){      $user=$resreg['firm_name'];    // }    echo '<option value='.$reg.'>'.$user.'</option>';  }  //echo '<option>'.$user.'</option>'; } 

image of results m getting


Comments

Popular posts from this blog

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

python Tkinter Capturing keyboard events save as one single string -

sql server - Why does Linq-to-SQL add unnecessary COUNT()? -