944,144 Members | Top Members by Rank

Ad:
  • ASP Discussion Thread
  • Unsolved
  • Views: 1594
  • ASP RSS
Mar 16th, 2007
0

Need help.count total data from 2 database

Expand Post »
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
%>
<%
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
toeffendi is offline Offline
1 posts
since Mar 2007

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in ASP Forum Timeline: ASP/ Flash Integration using sql server 2000
Next Thread in ASP Forum Timeline: Free Host for ASP and MySQL





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC