|
jvcnacho -> RE: Radio buttons from database (2/9/2007 16:07:14)
|
Hello, Here's my table. I like the diet. I didn't think I could do that. [:)] The "order by"'s aren't necessary...I put them in to make it make sense to me. Currently the Primary_Contact field is a Yes/No data type, but it could be something else if that would help. I haven't been able to get the -1 and 0 stuff correct. Thanks in advance for any help you can provide. <table>
<tbody>
<!--#include file="_fpclass/fpdblib.inc"-->
<% if 0 then %>
<SCRIPT Language="JavaScript">
document.write("<div style='background: yellow; color: black;'>The Database Results component on this page is unable to display database content. The page must have a filename ending in '.asp', and the web must be hosted on a server that supports Active Server Pages.</div>");
</SCRIPT>
<% end if %>
<%
fp_sQry="SELECT * FROM qryPrimaryContact ORDER BY Alias ASC,Primary_Contact ASC,Last ASC"
fp_sDefault=""
fp_sNoRecords="<tr><td colspan=7 align=""LEFT"" width=""100%"">No records returned.</td></tr>"
fp_sDataConn="tracker"
fp_iMaxRecords=0
fp_iCommandType=1
fp_iPageSize=0
fp_fTableFormat=True
fp_fMenuFormat=False
fp_sMenuChoice=""
fp_sMenuValue=""
fp_sColTypes="&PeopleID=3&FullName=202&AliasID=3&First=202&Last=202&Alias=202&Primary_Contact=11&"
fp_iDisplayCols=7
fp_fCustomQuery=False
BOTID=0
fp_iRegion=BOTID
%>
<!--#include file="_fpclass/fpdbrgn1.inc"-->
<tr>
<td>
<%=FP_FieldVal(fp_rs,"PeopleID")%></td>
<td>
<%=FP_FieldVal(fp_rs,"FullName")%></td>
<td>
<%=FP_FieldVal(fp_rs,"AliasID")%></td>
<td>
<%=FP_FieldVal(fp_rs,"First")%></td>
<td>
<%=FP_FieldVal(fp_rs,"Last")%></td>
<td>
<%=FP_FieldVal(fp_rs,"Alias")%></td>
<td>
<%=FP_FieldVal(fp_rs,"Primary_Contact")%></td>
</tr>
<!--#include file="_fpclass/fpdbrgn2.inc"-->
</tbody>
</table>
|
|
|
|