Wrox Programmer Forums
|
Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." NOT for ASP.NET 1.0, 1.1, or 2.0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 27th, 2003, 05:55 PM
Authorized User
 
Join Date: Jun 2003
Posts: 41
Thanks: 0
Thanked 0 Times in 0 Posts
Default fill a table

I have a table with three cols I want to fill the table with data I retreive from a database, what would be the best way to do it?

Thanks in advance.
 
Old July 27th, 2003, 06:40 PM
Authorized User
 
Join Date: Jun 2003
Posts: 41
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Never mind I found a way to do it.
 
Old August 5th, 2003, 09:56 AM
Registered User
 
Join Date: Aug 2003
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

<table border="10" width="100%" align="Center">
  <tr>
    <td width="33%" align="center" bgcolor="white"><b>[u]First Name</u></b></td>
    <td width="33%" align="center" bgcolor="white"><b>[u]Last Name</u></b></td>
  </tr>

<%
' Get a list names from the DBset
Names = oConn.Execute(_
"SELECT * FROM NAMES")
do until Names.EOF
%>

<tr>
    <td width="33%" align="center" bgcolor="white"><b><%=Names("FirstName")%></a></b></td>
<td width="33%" align="center" bgcolor="white"><b><%=Names("LastName")%></a></b></td>
</tr>
<% Names.MoveNext
loop %>
</table>








Similar Threads
Thread Thread Starter Forum Replies Last Post
Fill in table based on start and end date drm237 Access 3 April 24th, 2007 07:55 AM
Fill in the blanks voskoue Access VBA 4 January 30th, 2007 10:02 AM
"fill" is different from "load" salemkoten Visual Studio 2005 0 October 23rd, 2006 04:24 AM
Flood Fill j0xmail Access VBA 0 August 17th, 2005 07:39 AM
Fill a drop down box with table names? morpheus Classic ASP Basics 10 April 23rd, 2004 08:35 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.