I am semi-new to php/mysql. So be patient with me.
I am creating a site for someone else. In this site there is a table with mandatory questions, but I have given the site owner the ability to add new questions to the table. Now, I need to display the table for the site owner to see. I know how to display a regular table,
<table>
<tr>
<td>Email Address</td>
<td>First Name</td>
<td>Last Name</td>
</tr>
<?php do { ?>
<tr>
<td><?php echo $user['user_email']; ?></td>
<td><?php echo $user['user_firstname']; ?></td>
<td><?php echo $user['user_lastname']; ?></td>
</tr>
<?php } while ($user = mysql_fetch_assoc($user)); ?>
</table>
The problem is when the site owner adds questions, they will not show up, because I didn't know ahead of time. Obviously.
So what I think I need, and I don't know if it even exists, but almost a loop inside a loop. A loop for the columns and then for the rows. I hope I explained it good enough, because I don't even really know how to. Thanks