Display Records in HTML Page View

Display Records in HTML Page View

I am beginning to discover more about Creator - Pages. Right now, I am attempting to develop a simple page that would show information related to projects. 

Below is the code I am using. 

The issue: I have three different projects in the form it's pulling from. It is showing the same project on three rows instead of a new project on each row. 

  1. htmlpage Search()
  2. <%{

  3. projects = Project_Information [ID != 0];
  4. %>
  5. <table width="200" border="1" align="left" cellpadding="1" cellspacing="1">
  6.     <caption>Test</caption>
  7.     <tbody>
  8.         <tr>
  9.             <td>Project Name</td>
  10.             <td>Project POC</td>
  11.         </tr>
  12. <% 
  13. for each record in projects
  14. {
  15. name = projects.project_name;
  16. poc = projects.primary_poc; 
  17. %>
  18. <tr>
  19. <td> <%=name%> </td>
  20. <td> <%=poc%> </td>
  21. </tr>
  22. <% 

  23. %>
  24. </tbody>
  25. </table>
  26. &nbsp;
  27. <%

  28. }%>