Simple PHP problem I'm having..?

Haydn Bowley

New member
<?php $count = 0;
while ($count <= 5) {
echo ("
<p class='lite'>Subject 1</p>
<select type='text' name='subject1' id='subject1'>
<option selected='selected'>" . $row_pinnit_users['subject1'] . "</option>");

do { echo ("<option>" . $row_pinnt_subjects['subject'] . "</option>"); } while ($row_pinnt_subjects = mysql_fetch_assoc($pinnt_subjects)) . "</select>");

$count++;

} ?>

There's an error which I cannot see, can any give any hints or clues? Thank you.
Ah, yes I missed out that.

Still getting an error, any ideas?

<?php $count = 0;
while ($count <= 5) {
echo ("
<p class='lite'>Subject 1</p>
<select type='text' name='subject1' id='subject1'>
<option selected='selected'>" . $row_pinnit_users['subject1'] . "</option>");

do { echo ("<option>" . $row_pinnt_subjects['subject'] . "</option>"); } while ($row_pinnt_subjects = mysql_fetch_assoc($pinnt_subjects)) { echo("</select>"); }


$count++;

} ?>
 
Back
Top