Asp > SQL
Display Table, Edit Record, Update Record
Display Table, Edit Record, Update Record <% Response.Buffer=True Response.ExpiresAbsolute = Now() - 1 Response.AddHeader "Cache-Control", "private" %>
authorshow.asp
<% myDSN="DSN=Student;uid=student;pwd=magic" mySQL="select * from authors where AU_ID<100 order by author" IDfield="AU_ID" scriptresponder="authoredit.asp" Set conntemp=Server.CreateObject("adodb.connection") conntemp.open myDSN Set rstemp=conntemp.execute(mySQL) howmanyfields=rstemp.fields.count -1 %>
---
<% 'Put Headings On The Table of Field Names For i=0 To howmanyfields %>
<%=rstemp(i).name %>
<% Next %>
<% ' Now lets grab all the records Do While Not rstemp.eof %>
<%my_link=scriptresponder & "?which=" & rstemp(idfield)%>
Edit
<% For i = 0 To howmanyfields%>
<%=rstemp(i)%>
<% Next %>
<% rstemp.movenext Loop rstemp.close Set rstemp=Nothing conntemp.close Set conntemp=Nothing %>
Asp Codes
ActiveX
ADO
Array
Code Snippets
Components
Data Access
Date Time
Files
Graphics
HTML Formatting
Mathematics
Miscellaneous
Sessions
SQL
Strings
Techniques
XML