Code Bank
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsProgrammingCode Bank

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 ASP Free Forums Sponsor:
  #1  
Old May 31st, 2004, 06:49 PM
Maelgwyn Maelgwyn is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: May 2004
Posts: 1 Maelgwyn User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Unhappy Errors??

Can anybody see any errors in here? The connection string etc haven't been included, because they're correct...

******

sql = "SELECT tblProducts.Product_ID, tblProducts.Product_Name, tblProducts.Product_Price, tblProducts.Product_Desc, tblProducts.Cat_ID, tblProducts.Product_Quantity, tblProducts.Product_Image, tblProducts.Man_ID, tblProducts.Valid, tblManufacturer.Man_Name, tblCategories.Cat_Name FROM tblProducts, tblManufacturer, tblCategories WHERE tblProducts.Man_ID = tblManufacturer.Man_ID AND tblProducts.Cat_ID = tblCategories.Cat_ID"
'Response.Write sql <- for debugging purposes
'Response.End <- as above

Set RS = Server.CreateObject("ADODB.RecordSet")

RS.Open sql,conn
%>
<html>
<head>
<link rel="stylesheet" type="text/css" href="style.css">
<title>Administration Panel</title>
</head>
<body>
<table width="500" border="1" cellspacing="0" cellpadding="0" align="center">
<tr>
<td class="tblTitle">Product ID</td>
<td class="tblTitle">Name</td>
<td class="tblTitle">Price</td>
<td class="tblTitle">Quantity</td>
<td class="tblTitle">Description</td>
<td class="tblTitle">Valid</td>
<td class="tblTitle">Category</td>
<td class="tblTitle">Manufacturer</td>
<td colspan="2" class="tblTitle">Options</td>
</tr>
<% WHILE NOT RS.EOF %>
<tr>
<td><%=RS("Product_ID")%></td>
<td><%=RS("Product_Name")%></td>
<td><%=RS("Product_Price")%></td>
<td>$<%=RS("Product_Quantity")%></td>
<td><%=RS("Product_Desc")%></td>
<td><%=RS("Valid")%></td>
<td><%=RS("Cat_Name")%></td>
<td><%=RS("Man_Name")%></td>
<td><a href="edit.asp"><img src="images/pencil.gif" alt=":EDIT:" border="0"></a></td>
<td><a href="delete.asp"><img src="images/cross.gif" alt="ISCONTINUE:" border="0"></a></td>
</tr>
<% RS.moveNext
WEND %>
</table>
</body>
</html>

******

The error I'm experiencing is that according to SQL Server, everything that I want is being output, but Man_Name & Product_Description aren't being displayed!

Reply With Quote
  #2  
Old June 1st, 2004, 07:45 AM
beercraft_asp's Avatar
beercraft_asp beercraft_asp is offline
Spell Breaker
ASP Free Novice (500 - 999 posts)
 
Join Date: May 2004
Posts: 990 beercraft_asp User rank is Lance Corporal (50 - 100 Reputation Level)beercraft_asp User rank is Lance Corporal (50 - 100 Reputation Level)beercraft_asp User rank is Lance Corporal (50 - 100 Reputation Level) 
Time spent in forums: 3 Days 8 h 33 m 42 sec
Reputation Power: 5
Send a message via AIM to beercraft_asp Send a message via MSN to beercraft_asp
Arrow

Can you wtire Error message???

Reply With Quote
Reply

Viewing: ASP Free ForumsProgrammingCode Bank > Errors??


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 6 hosted by Hostway