Jump to content

bullet points


ec

Recommended Posts

When ever I print using the below code, I always get bullet point next to every line...is there anyway of getting rid of this?

 

<?php
$query = "SELECT detention.pupilno, detention.reason, detention.teacherid, pupil.firstname, pupil.lastname FROM detention, pupil WHERE detention.detentiondate = '$_SESSION[detentiondate]' AND pupil.pupilno = detention.pupilno ";
$result = mysql_query($query);
if ($result) {

   while ($array= mysql_fetch_assoc($result)) {
       echo "<li></li>";
       print "<li>$array[pupilno]: <i>$array[firstname] $array[lastname]</i></li>";
       print "<li><b>Reason:</b> $array[reason]</li>";
       print "<li><b>Allocated By:</b> $array[teacherid] </li>";}
       }

?>

Link to comment
https://forums.phpfreaks.com/topic/98460-bullet-points/
Share on other sites

http://htmldog.com/

 

I highly recommend reading through these excellent tutorials. Semantic markup may not seem like a big deal to some but it's a huge issue. If you have a list of items, a list is what should be used. If it's an ordered list, use <ol>, if the order doesn't have any contextual meaning and it's just a list, you can use <ul>. CSS should always be used to modify the visual look of an element, such as list-style: none;

 

Sorry as this is off topic but is an ever growing issue as we try to get away from using tables for layouts (tables SHOULD be used for table data though, that's what they are there for.) and tag soup.

Link to comment
https://forums.phpfreaks.com/topic/98460-bullet-points/#findComment-503969
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.