
thank you for your great help JAI! would really worked for me!
REALLY APPRECIATE, I HAVE CHANGE ALL TEMPLATES BUT STILL STUCK IN THE SEARCH_RESULTS TEMPLATE BECAUSE I DONT KNOW HOW DO I DO TO REFERENCE THE FIELD LOCATED IN OTHERS TABLES
DO YOU KNOW?
EX:
I HAVE THE RELATIONAL TABLE T_PRATE
T_PRATE HAS THE FOLLOWING FIELDS
PRATE_ID | PHONEC_ID | COUNTRYF_IF | COUNTRYT_ID | PHONEC_CITY | VALUE_ID | PHONEC_MINUTES
THE PRATE_ID is the primary key for the table
phonec_id, countryf_id, countryt_id, value_id are fields that reference to others fields in others tables. i mean
phonec_id field belongs to the table t_phonec
countryf_id field belongs to the table t_countryf
countryt_id field belongs to the table t_countryt
value_id field belongs to the table t_value
now when listing all, searching or modifying a record i am getting from the (search results) form the numbers that belongs to the relational table field in the other table but not the real name.
Can you give me an example in how and what to change in the search_results so i got the real names for the listings searching, or modifying.
taking a look in the search_results i got
<%include header.html%>
<p>
<%if hits%>
<center>
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td>
<table bgcolor="#ffffff" border="0" width="500" valign="top">
<tr>
<td align=right>
<p align="center"><%speedbar%></p><p>
<%if sdo and $sdb%> <!--generate a form for related database-->
<%if hz%> <!-- horizontal display -->
<table border=1 cellpadding=0 cellspacing=0>
<tr><td>
<table border=0 width=500>
<tr bgcolor=#cccccc>
<%Dbsql::Relation::HTML::generate_header%>
</tr>
<%loop results%>
<tr>
<%Dbsql::Relation::HTML::generate_search_results%> </tr>
<%endloop%>
</table>
</td></tr>
</table>
<%else%>
<%loop results%>
<p>
<%Dbsql::Relation::HTML::generate_search_results%>
<%endloop%>
<%endif%>
<%else%>
<%loop results%>
<p><%Dbsql::HTML::generate_search_results%>
<%endloop%>
<%endif%>
<%if speedbar%><p align="center"><%speedbar%></p><%endif%>
</td>
</tr>
</table>
</td>
</tr>
</table>
</center>
<%endif%>
<p>
<%include footer.html%>
CAN YOU TELL ME AS BEFORE IN THE OTHER YOU HELPED ME A LOT WHAT TO CHANGE IN THIS TO GET WHAT I WANT?
THANX JAI,!
I AM LEARNING A LOT WITH YOU!
KevinW ANDRE
webmaster@cyberbrickell.com