Advertisement
Guest User

Untitled

a guest
Jul 26th, 2014
207
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. Lecture_ID | Subject | Section | time_Date
  2.  
  3. 0001 | Maths | A | ....
  4. 0002 | Maths | B | ....
  5. 0003 | Maths | C | ....
  6. 0004 | Maths | B | ....
  7.  
  8. Section A
  9. time_Date
  10. time_Date
  11.  
  12. Section B
  13. time_Date
  14. time_Date
  15. ...
  16.  
  17. $query = 'SELECT * FROM Lecutre_info WHERE Subject="'.$_GET['subject'].'" ORDER BY Section ASC';
  18. $result = mysql_query($query) or die(mysql_error());
  19.  
  20. while($row = mysql_fetch_array($result)) {
  21.  
  22. print '<h1>'.$row['Section']
  23. print '<br>'.$row['time_Date'];
  24.  
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement