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>'; }
Comments
Post a Comment