Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Creating a dynamic HTML table

Status
Not open for further replies.

Sherylj

Programmer
Jan 21, 2000
55
US
I'm attempting to display messages to students depending upon the questions answered in my app.  I have my info currently in an html table.  A student may get 2 rows of the table or 6 depending upon the information answered.  I want to display only the information needed and not all elements in the table.  Can I put my html code in a database (i.e. record) and pull it in or can I do CFIF's to display only the pieces of the table I want?  I think I can do both but which is preferred?  Thanks
 
It depends on the information you're generating and the code.<br><br>If it's IDENTICAL code but the text within changes, I'd say just use &lt;cfif&gt;s.&nbsp;&nbsp;I use those to change text responses myself.<br><br>Database queries are good if you have many, many types of responses to the question.&nbsp;&nbsp;If you're talking about only two types of responses, a data base query would be a little silly. :) <p> <br><a href=mailto:aberman@thebiz.net>aberman@thebiz.net</a><br><a href= > </a><br>Database programmer and developer, fueled by peach snapple.
 
There are many questions and many answers.&nbsp;&nbsp;I've figured out a way to do it with CFIF's (your suggetsed solution).&nbsp;&nbsp;Thanks!!&nbsp;&nbsp;<br>Sheryl :)
 
My other problem is the text that goes within the table may change and people in our admissions offices would need the ability to change it. That way I don't have to hard code their messages within the app this way. The IF's stay the same the text can be whatever they want. Less admin on my part.&nbsp;&nbsp;:)<br><br>Sheryl :)
 
Ah...!<br><br>If they need the ability to change it, then I would recommend sticking the answers into the database and creating a quick-and-dirty application that will allow them to edit and update the answers.&nbsp;&nbsp;A combination &lt;cfif&gt; and database query should work nicely here. <p> <br><a href=mailto:aberman@thebiz.net>aberman@thebiz.net</a><br><a href= > </a><br>Database programmer and developer, fueled by peach snapple.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top