Welcome, Guest ( Customer Panel | Login )




 All Forums
 VPCart Forum
 Customization
 shopcategories, needz help!!
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

aapkajaanu
Starting Member

19 Posts

Posted - January 31 2007 :  01:10:41  Show Profile  Reply with Quote
Hi, i am using the following statements for display categories and sub categories on supplier id, but this returns me all the subcategories, can anyone help...plz

SQL="Select * from categories "
sql = Sql & " where highercategoryid=" & highercategoryid
if Request("suplid")<>"" then
if Request("id")<>"" then
sql=sql & " and (highercategoryid in (select ccategory from products where supplierid="& Request("suplid") & ")) "
else
sql=sql & " and (categoryid in (select ccategory from products where supplierid="& Request("suplid") & ")) "
end if
end if

Kidd
VP-CART Super User

Australia
373 Posts

Posted - January 31 2007 :  04:57:41  Show Profile  Reply with Quote
well have you got the value of suplid set?
Go to Top of Page

aapkajaanu
Starting Member

19 Posts

Posted - February 01 2007 :  03:13:08  Show Profile  Reply with Quote
what do u mean by that? can u write the code for me? actually i cant get the subcategories against each supplier..
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Snitz Forums 2000
0 Item(s)
$0.00