ASP Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreASP Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now!
  #1  
Old July 22nd, 2003, 06:34 AM
jtanudjaja jtanudjaja is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Posts: 7 jtanudjaja User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Problem with printing out contents of DB to table

I have created an online database for a school project, and everything WAS going fine until today. Whenever i try to output the contents of the DB to a table, it skips a column for some reason and prints it in the next column. I have checked the ASP coding and the HTML coding and i can't seem to find the problem. I have left the code right under this message. If anyone could help it would be greatly appreciated. Thanks.


<%

Dim objRS
Set objRS = server.CreateObject ("ADODB.Recordset")
objRS.Open "Branches", objConn, , , adCmdTable

%>

<Table width="1209" height="27" border=1>
<tr>
<td><b>Number</b></td>
<td width="77"><B>Branch ID</b></td>
<td width="149"><b>Address</b></td>
<td width="168"><b>Country</b></td>
<td width="77"><b>State</b></td>
<td width="117"><b>Suburb/Town</b></td>
<td width="76"><b>Post Code/Zip Code</b></td>
<td width="134"><b>Head of branch</b></td>
<td width="106"><b>Contact number</b></td>
<td width="75"><b>Number of employee's</b></td>
<td width="102"><b>Items currently stocked</b></td>
</tr>

<%

Do While Not objRS.EOF
Response.Write"<tr><td>" & objRS("Number") & "</td>"
Response.Write "<td>" & objRS("Branch ID") & "</td>"
Response.Write "<td>" & objRS("Address") & "</td>"
Response.Write "<td>" & objRS("Country") & "<td>"
Response.Write "<td>" & objRS("State") & "</td>"
Response.Write "<td>" & objRS("Suburb/Town") & "</td>"
Response.Write "<td>" & objRS("Post Code/Zip Code") & "</td>"
Response.Write "<td>" & objRS("Head of branch") & "</td>"
Response.Write "<td>" & objRS("Contact number") & "</td>"
Response.Write "<td>" & objRS("Number of employee's") &"</td>"
Response.Write "<td>" & objRS("Items currently stocked") & "</td></tr>"
objRS.MoveNext
Loop

objRS.Close
Set objRS = Nothing
objConn.Close
Set objConn = Nothing

%>

</table>

Reply With Quote
  #2  
Old July 22nd, 2003, 09:06 AM
Silian's Avatar
Silian Silian is offline
Gogga
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Posts: 198 Silian User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
I would love to see a screen shot of what it does. Can't see anything wrong. (And can't exactly test it )

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreASP Programming > Problem with printing out contents of DB to table


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway