How can I get data alphabetically letter-wise and numeric-wise using PHP and MySQL?
I want to display my data like this:
**0-9 A B C D E ** 1 Apple Beautiful Cat DAD Ear 2 Ant Ball Cart Doll Eat
Please help me approach this using PHP and MySQL.
<ul>
<?php include "config.php";
$sql4 = mysql_query("select * from categories");
$count = mysql_num_rows($sql4);
while($rows = mysql_fetch_array($sql4)){
?>
<li><?php echo $rows['category_name'] ?></li>
<?php } ?>
</ul>