Sql help again...

Status
Not open for further replies.

E3

Ars Centurion
387
Do Until RSCategory("parent_cat") = "Top"
TempPath = "<A HREF=""" & PathToPage _
& "?CategoryName" & RSCategory("parent_cat") & """>" _
& RSCategory("parent_cat") & "<A> > " & TempPath
Set RSCategory = Conn.Execute("Select parent_cat from " _
& "Categories where cat_name = '" _
& RSCategory("parent_cat") & "'")
Loop

cat_id &nbsp cat_name @nsbsp parent_cat

1 &nbsp Sega Nights Pad &nbsp Saturn
2 &nbsp Playstation Controller &nbsp PlayStation
3 &nbsp PC &nbsp Top
4 &nbsp Software &nbs PC



Error: Error Type:
ADODB.Recordset (0x800A0BCD)
Either BOF or EOF is True, or the current record has been deleted. Requested operation requires a current record.
/Auction_List.asp, line 20
 

E3

Ars Centurion
387
Sorry for the inconvience.

Using Microsoft sql server with Asp.

Do Until RSCategory("parent_cat") = "Top"
TempPath = "<A HREF=""" & PathToPage _
& "?CategoryName" & RSCategory("parent_cat") & """>" _
& RSCategory("parent_cat") & "<A> > " & TempPath
Set RSCategory = Conn.Execute("Select parent_cat from " _
& "Categories where cat_name = '" _
& RSCategory("parent_cat") & "'")
Loop

cat_id &nbsp cat_name &nbsp parent_cat

1 &nbsp Sega Nights Pad &nbsp Saturn
2 &nbsp Playstation Controller &nbsp PlayStation
3 &nbsp PC &nbsp Top
4 &nbsp Software &nbsp PC



Error: Error Type:
ADODB.Recordset (0x800A0BCD)
Either BOF or EOF is True, or the current record has been deleted. Requested operation requires a current record.
/Auction_List.asp, line 20


The goal: Auction items belonging to a certain child category and this child category is under a main/parent category.

rightnow I m looping through the items and once it find a parent category that says "top" that means it has complete the search for all the subcategories under the "TOP" <- ultra parent.
 
Status
Not open for further replies.