Is there a way to do an echo while loop without using a table? The example I have is: echo '<table>'; while ($row = mysqli_fetch_array($data)) { Code (markup): I really don't want to use a table.
Not enough information. What data are you trying to display? There are numerous ways to display the data, none of them have to do with PHP. For example, you could display them using <pre>. You could also format using CSS. Also, there's nothing wrong with using tables, especially for tabular data. Again, what is it you are trying to display?
I have created a form, I am now going to be using that form as a template for instead of entering data it will show data. Here is the form. http://www.kaboomlabs.com/PDI/ncmr.html
What you can do is take the exact same code you use to display the form, and instead of text fields, you just output the associated data from the recordset. For example: <fieldset> <div id ="added"> <label>Added By:</label> <?php echo $row['Added_By']; ?> <label>on:</label> <?php echo $row['Added_By_Date']; ?> </div> <div id="box"> <div id ="part"> <label>Nexx Part:</label> <?php echo $row['Nexx_Part']; ?><br /> <label>Nexx Rev:</label> <?php echo $row['Nexx_Rev']; ?><br /> <label>Nexx Part Description:</label> <?php echo $row['Nexx_Part_Description']; ?><br /> Code (markup): etc...
If you're sending the form to the user, and then you want to stuff it with data, Use AJAX. (I can't post a whole AJAX tutorial here, but there are hundreds of them on the web. The easiest way to do it is with jQuery.)