| | |
Need help.count total data from 2 database
Please support our ASP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Mar 2007
Posts: 1
Reputation:
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
%>
<%
![]() |
Similar Threads
- 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
Views: 1431 | Replies: 0
| Thread Tools | Search this Thread |
Tag cloud for ASP
archive asp asp.net aspandmssqlserver2005 aspandmssqlserver2005connection aspconnection calendar changeable connection current database databaseconnection diagnostics dreamweaver excel fso html iis microsoft msmsql mssql2005 mssqlserver2005 mssqlserver2005andasp mssqlserverandasp opentextfile query record searchbox selectoption server single specfic sqlserver sqlserverconnection toolkit update web webserver windows7





