Below is a code used to retrieve Keywords from my db I want to print a bullet before each one so I put the <ul> before the script and </ul> at the end and the loop that prints the keyword script which is below has the <li> before the anchor and the </li> after the anchor.
QUESTION WHY DO I GET 2 EMPTY BULLETS PRINTED BEFORE THE ACTUAL INFO COMES FROM THE DB?
<?php
require"./include/connect.
php";
$res = mysql_unbuffered_query("se
lect p_keyword from 1_article order by p_keyword");
while ($entry = mysql_fetch_assoc($res))
{
echo '<li><a href="' . urlencode($entry['p_keywor
d']) . '.html">' . htmlentities($entry['p_key
word']) . '</a><li>';
}
?>
Start Free Trial