Recent content by Haydn Bowley

  1. H

    PHP Loops, MySQL database problem, help?

    // Loop 4 times to create 4 drop down boxes <?php $count = 1; // Store the values from the database in an array // Loop until it's reached the end of the database $resultarray = array(); while($row_pinnt_subjects = mysql_fetch_assoc($pinnt_subjects)) { $resultarray['subject']=$row; } // echo...
  2. H

    PHP Loop Problem.. Only executes some of data 1 out 4 times?

    <?php $count = 1; do { echo ("<p class='lite'>Subject" . $count . "</p>"); echo ("<select type='text' name='subject1' id='subject1'>"); echo ("<option selected='selected'>" . $row_pinnit_users['subject1'] . "</option>"); $count++; // pulls every subject from data base do...
  3. H

    Simple PHP problem I'm having..?

    <?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...
  4. H

    Simple PHP problem I'm having..?

    <?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...
Back
Top