Advertisement

02.10.2008 at 03:51PM PST, ID: 23151902 | Points: 500
[x]
Attachment Details

Printing out to many lists before the actual text

Asked by smphil in PHP and Databases, Cascading Style Sheets (CSS), MySQL Server

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("select p_keyword from 1_article order by p_keyword");
 while ($entry = mysql_fetch_assoc($res))
 {
  echo '<li><a href="' . urlencode($entry['p_keyword']) . '.html">' . htmlentities($entry['p_keyword']) . '</a><li>';
 }

?>
Start Free Trial
 
Loading Advertisement...
 
[+][-]02.10.2008 at 04:04PM PST, ID: 20863250

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02.10.2008 at 04:58PM PST, ID: 20863393

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]02.10.2008 at 05:08PM PST, ID: 20863428

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02.10.2008 at 05:33PM PST, ID: 20863494

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]02.10.2008 at 05:43PM PST, ID: 20863530

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02.10.2008 at 06:21PM PST, ID: 20863615

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02.10.2008 at 07:16PM PST, ID: 20863780

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]02.10.2008 at 07:24PM PST, ID: 20863807

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02.10.2008 at 07:49PM PST, ID: 20863873

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02.10.2008 at 08:04PM PST, ID: 20863922

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]02.10.2008 at 08:09PM PST, ID: 20863939

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628