Results 1 to 11 of 11
Aug 25, 2012, 14:05 #1
- Join Date
- Feb 2007
- 2 Post(s)
- 0 Thread(s)
Show Pirticular Number of Units (Not Total Units)
I am trying to display a number of pirticular units in a database. I have the following which shows the total number of units, but not the pirticular units.
For example, the code below will show: There are 11 Widgets.
What I am trying to show is:
There are 4 Red Widgets.
There are 2 Blue Widgets.
There are 5 Green Widgets.
Does anyone know how to do this please?
There are <?php $result = mysql_query("SELECT * FROM organiserdbase", $link); $num_rows = mysql_num_rows($result); echo "$num_rows \n"; ?> Widgets