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
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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.