I am working on a page that displays a line of information with a
checkbox at the end.  I began by getting all of the information I wanted
displayed working properly and now I am adding the checkbox.  Everything is
going find with the exception that all  of a sudden with the checkbox code
in I am getting an empty line and checkbox at the beginning of the loop.  I
cannot figure out where this is coming from.  Please let me know where I
have gone wrong.


<table width="90%" bgcolor="#CCCCCC" cellspacing="0">
  <tr> 
    <td width="20%" height="23"><div align="center">Requesting User
ID</div></td>
    <td width="10%" valign="top"><div align="center">System Name</div></td>
    <td width="10%" valign="top"><div align="center">Primary
Group</div></td>
        <td width="10%" valign="top"><div align="center">Default
Shell</div></td>
    <td width="30%" valign="top"><div align="center">Request Time</div></td>
        <td width="10%" valign="top"><div
align="center">Completed</div></td>
  </tr>

<form method=post action="account_details.php">
<?php
  do {
        $entry = $list['id_sys'];
    $id = split('-', $list['id_sys']);
        $sbcuid = $id[0];
        $sys = $id[1];
        echo "<td width=\"20%\"><div
align=\"center\">".$sbcuid."</div></td>";
        echo "<td width=\"10%\"><div align=\"center\">".$sys."</div></td>";
        echo "<td width=\"15%\"><div
align=\"center\">".$list['gid']."</div></td>";
        echo "<td width=\"15%\"><div
align=\"center\">".$list['shell']."</div></td>";
        echo "<td width=\"30%\"><div
align=\"center\">".$list['atime']."</div></td>";
        echo "<td width=\"10%\"><div align=\"center\"><input
name=\"entry[]\" type=\"checkbox\" value=$entry></div></td></tr>";
  } while ($list = mysql_fetch_assoc($result));
?>

</table>

  <div align="center">
  <input type=submit value="Details">
  </div>
</form>

        This is the code for all of the section dealing with the data
display.  The rest of the page is just some extra text and formatting, as
well as the actual query code.  Thanks again.
Scott Nipp
Phone:  (214) 858-1289
E-mail:  [EMAIL PROTECTED]
Web:  http:\\ldsa.sbcld.sbc.com



-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to