Jump to content

Displaying numbers


ItsWesYo

Recommended Posts

I've gotten it to display only certain letters, but what would I put to display ALL items that start with numbers?

 

This is what I have to display certain letters:

<?php
          case "A":
$result = mysql_query("SELECT * FROM items WHERE name LIKE 'A%'");
while($r=mysql_fetch_assoc($result)) {
     $name=$r['name'];
     echo "$name<br>";
}
mysql_free_result($result);
          break;
?>

 

I want to display ALL numbers, not just individually.

Link to comment
https://forums.phpfreaks.com/topic/61100-displaying-numbers/
Share on other sites

Archived

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

×
×
  • Create New...

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.