•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the ASP section within the Web Development category of DaniWeb, a massive community of 429,971 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,565 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our ASP advertiser: Lunarpages ASP Web Hosting
Views: 1031 | Replies: 0
![]() |
•
•
Join Date: Mar 2007
Posts: 1
Reputation:
Rep Power: 0
Solved Threads: 0
have 2 database
1. list of product = product type & Product catalog
-------------------------
product type Product catalog
AA a1
BB b1
-------------------------
2. Detail of product = product catalog & detail product
-------------------------
Product
catalog detail
a1 1
a1 1
a1 1
b1 1
b1 1
b1 1
b1 1
-------------------------
<%
Dim product__MMColParam
product__MMColParam = "Product"
If (Request("MM_EmptyValue") <> "") Then
product__MMColParam = Request("MM_EmptyValue")
End If
%>
<%
Dim product
Dim product_numRows
Set product = Server.CreateObject("ADODB.Recordset")
product.ActiveConnection = MM_data_STRING
product.Source = "SELECT * FROM list of product WHERE Product_type = '" +
Replace(product__MMColParam, "'", "''") + "' ORDER BY Product_catalog ASC"
product.CursorType = 0
product.CursorLocation = 2
product.LockType = 1
product.Open()
product_numRows = 0
%>
<%
Dim Rec_count__MMColParam
Rec_count__MMColParam = "a1"
If (Request("MM_EmptyValue") <> "") Then
Rec_count__MMColParam = Request("MM_EmptyValue")
End If
%>
<%
1. list of product = product type & Product catalog
-------------------------
product type Product catalog
AA a1
BB b1
-------------------------
2. Detail of product = product catalog & detail product
-------------------------
Product
catalog detail
a1 1
a1 1
a1 1
b1 1
b1 1
b1 1
b1 1
-------------------------
<%
Dim product__MMColParam
product__MMColParam = "Product"
If (Request("MM_EmptyValue") <> "") Then
product__MMColParam = Request("MM_EmptyValue")
End If
%>
<%
Dim product
Dim product_numRows
Set product = Server.CreateObject("ADODB.Recordset")
product.ActiveConnection = MM_data_STRING
product.Source = "SELECT * FROM list of product WHERE Product_type = '" +
Replace(product__MMColParam, "'", "''") + "' ORDER BY Product_catalog ASC"
product.CursorType = 0
product.CursorLocation = 2
product.LockType = 1
product.Open()
product_numRows = 0
%>
<%
Dim Rec_count__MMColParam
Rec_count__MMColParam = "a1"
If (Request("MM_EmptyValue") <> "") Then
Rec_count__MMColParam = Request("MM_EmptyValue")
End If
%>
<%
![]() |
•
•
•
•
•
•
•
•
DaniWeb ASP Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
.net access ajax asp avatar backup breach broadband code combo crime custom daniweb data data protection data transfer database design developer development dom dropdownlist forensics government hacker hardware ibm internet linux medicine microsoft module net news normalization office reader reuse security server skin software sql storage survey theme web wikipedia xml xoap
- retrieving a single cell of data from a MySQL database (PHP)
- How to store data in data grid to database by single mouse click in Asp.net (ASP.NET)
- copy data from excel to vb database (Visual Basic 4 / 5 / 6)
- Inserting Data into Access Database (Java)
- IListSource does not contain any data sources (ASP.NET)
- Unable to insert data into SQL Database (ASP)
- Filtering data from an access database (Visual Basic 4 / 5 / 6)
- Posting form data to an Oracle database (JavaScript / DHTML / AJAX)
- php wont submit data into the database (PHP)
Other Threads in the ASP Forum
- Previous Thread: ASP/ Flash Integration using sql server 2000
- Next Thread: Free Host for ASP and MySQL


Linear Mode