What I am trying to do here is echo out every columns "unit" within my database. In my database I have columns: evaluation, unit, percent and due date. I want all the units to appear on the table in a row as I have tried to do it but can't seem to find out how to do this. this is the code that I have tried `<?php echo $unit ?>` but does not seem to work.
Example

My database:

```
project0     unit1     15%     22-07-2014
project1     unit1     10%     24-07-2014
project2     unit2     20%     27-07-2014
project3     unit3     30%     29-07-2014

```

Code

```
<?php
mysql_connect('localhost','root','root');
mysql_select_db('Eviden');
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Documento sin título</title>
</head>

<body>
<form id="form1" name="form1" method="post" action="">
    <table width="200" border="1">
    <?php
        $result = mysql_query("SELECT * FROM peviden");
        while($row=mysql_fetch_array($result)){
            $unit=$row['unit'];
            $name=$row['name'];
      ?>
      <tr>
        <td>&nbsp;</td>
<!--I want all the units columns in the database to go on this row-->
        <td><?php echo $unit ?></td>
        <td><?php echo $unit ?></td>
        <td><?php echo $unit ?></td>
        <td><?php echo $unit ?></td>
      </tr>
      <tr>
        <td>Name</td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
      </tr>
      <tr>
        <td>Sebastian</td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
      </tr>
      <tr>
        <td>Zack</td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
      </tr>
      <tr>
        <td>Daniel</td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
      </tr>
      <?php
      }
      ?>
    </table>
</form>
</body>
</html>

```