Guest User

Untitled

a guest
Jan 18th, 2019
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.97 KB | None | 0 0
  1. echo '<div>';
  2. while ($row=mysql_fetch_assoc($result))
  3. {
  4. if ($row['Course']!=$old_id)
  5. {
  6. $old_id=$row['Course'];
  7. echo '</div>
  8. <div class="sectitle">'.$row['Course'].'</div>
  9. <div style="width:100%;float:left">';
  10. }
  11. if ($row['Approved']==1)
  12. {
  13. $coursedate=date("M Y", strtotime($row['Submitted']));
  14. echo '<div class="nbutton">
  15. <ul>
  16. <li><strong><a target="_new" href="' . $row['AssignmentURL'] . '">' . $row['URL'] . '</a></strong></li>
  17. <li>Instructor: ' . $row['LastName'] . ', ' . $row['FirstName'] . '</li>
  18. <li>Book: '.$row['TextBook'].'</li>
  19. <li>Submitted: '.$coursedate.' </li>
  20. </ul>
  21. </div>';
  22. }
  23. }
  24. echo '</div>';
  25.  
  26. $courses=array_unique($row['Course'])
  27. foreach ($courses as $course)
  28. {... This is where I get lost.
  29.  
  30. $courses = array();
  31. while ($row = mysql_fetch_assoc($result)) {
  32. $courses[] = $row;
  33. }
Add Comment
Please, Sign In to add comment