I have built a joomla website and have a chronoform set up to dump into a chrono-connectivity database. The intent is to allow 7 registered users to update their info on the form and have a resulting web page that pulls data from the database to display updated information for all 7. I got data to display but it isn’t exactly what I need. I have done a little basic HTML and have been trying to learn PHP, but am unsure how that translates to the chrono-connectivity system. The first code from the body area inserted below was that simple initial attempt. It does display user input data, but in the format of a long list of form results verbatim as they were submitted.
What I need is a simple table that would have a heading row stretching horizontally across the page with columns labeled “Name”, “Location” and “Updated”. Below the heading row would be a line of data for each of the 7 users that would display the 3 desired data input fields from the database, name {text_1}, location {text_2} and date reporting {recordtime} for each of the 7 people. The result would be a small concise grid that would show the name location and check-in date of each person and fit on a small portion of one single page similar to a small spreadsheet. Submission of new form data would only update that existing table with anything new and continue to display the most recent updates for all 7 users. The second code attempt inserted below is probably grossly oversimplified and displays nothing when its page is loaded. I think it does give a hint as to what I’m going for though. I’m told that I need to use “limit” and “order by” in the query, but not sure how to employ that. Does anyone have ideas on coding that would achieve this?
Thanks,
John
<P>
<strong>{text_1}</strong>
<hr>
{text_2}
<hr>
{recordtime}
<hr>
<br>
</P>
What I need is a simple table that would have a heading row stretching horizontally across the page with columns labeled “Name”, “Location” and “Updated”. Below the heading row would be a line of data for each of the 7 users that would display the 3 desired data input fields from the database, name {text_1}, location {text_2} and date reporting {recordtime} for each of the 7 people. The result would be a small concise grid that would show the name location and check-in date of each person and fit on a small portion of one single page similar to a small spreadsheet. Submission of new form data would only update that existing table with anything new and continue to display the most recent updates for all 7 users. The second code attempt inserted below is probably grossly oversimplified and displays nothing when its page is loaded. I think it does give a hint as to what I’m going for though. I’m told that I need to use “limit” and “order by” in the query, but not sure how to employ that. Does anyone have ideas on coding that would achieve this?
<P>
<table bgcolor=#FFFFCC align="center" border=3 cellpadding=4 cellspacing=1>
<tr>
<th width="140" align="center">NAME</th>
<th width="140" align="center">LOCATION</th>
<th width="140" align="center">UPDATED</th>
</tr>
<tr>
<td align="center">{text_1}</td>
<td align="center">{test_2}</td>
<td align="center">{recordtime}</td>
</tr>
</P>
Thanks,
John