under the while loop I have an ordered list it return the list with the same number of the first item
this is my php code
<?php
$all_tutorials = " select * from tutorials where active = 1";
$result = $db -> query ($all_tutorials) or die ($db->error);
if ($result) {
while ($row = $result -> fetch_object()) {
?>
<ol>
<li><?php echo $row->tutorial_title ?></li>
</ol>
<?php
}
}
?>
it returns the items some thing like this
1 blah blah blah blah blah blah ,
1 blah blah blah blah blah blah ,
1 blah blah blah blah blah blah ,
which it should be something like this
- blah blah blah blah blah blah
- blah blah blah blah blah blah
- blah blah blah blah blah blah
please someone tell me how to do this under the loop
Thanks
Set the
<ol>tags on the outside of thewhile.