I was wondering how I can sort the content in a ordered list set up using html.
I need to use PHP and mySQL so any tips in this direction will be looked at seriously.
The html for the list
<div id="right-column-sidebar">
<ol>
<li><a href="#">Title 1</a></li>
<li><a href="#">Title 2</a></li>
<li><a href="#">Title 3</a></li>
<li><a href="#">Title 4</a></li>
<li><a href="#">Title 5</a></li>
<li><a href="#">Title 6</a></li>
<li><a href="#">Title 7</a></li>
<li><a href="#">Title 8</a></li>
<li><a href="#">Title 9</a></li>
<li><a href="#">Title 10</a></li>
<li><a href="#">Title 11</a></li>
<li><a href="#">Title 12</a></li>
<li><a href="#">Title 13</a></li>
<li><a href="#">Title 14</a></li>
<li><a href="#">Title 15</a></li>
<li><a href="#">Title 16</a></li>
<li><a href="#">Title 17</a></li>
<li><a href="#">Title 18</a></li>
<li><a href="#">Title 19</a></li>
<li><a href="#">Title 20</a></li>
</ol>
</div>
All of these titles belong to one and the same Category. All tips are welcome!
This all assumes you have some data inside the database
dband inside the tabletableyou have a column calledtitlewhich contains a bunch of entries with titles. This will loop through the results and display them.Of course sorting the information just requires some extra info in your query.