Just nu i M3-nätverket
Jump to content

Er det noe feil her?


RuSa79

Recommended Posts

<Script Language="JavaScript" RUNAT="server">

 

function createSQL(shoppingcart) {

 

var output = "Select * from produktene where"

 

var a = shopping_cart.split("|")

 

for (i = 0; i < a.length; a++) {

 

if (a != null) {

 

var b = a.split(",")

 

if (i > 0) {

 

output += " or "

 

}

 

output += " vareid = "+b[0]

 

}

 

}

 

return output

 

}

 

 

</Script>

 

Er det noen som kan si om det er feil her?

 

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.



×
×
  • Create New...