Forums
This topic is locked
Update multiple records
Posted 27 Sep 2004 17:01:52
1
has voted
27 Sep 2004 17:01:52 Rene Bandsma posted:
<b>Situation</b>With WA eCart 2.0 I have created an e-commerce system, when a customer buys goods and checks out the items he/she bought should be inactive. So a recordfield is updated.
With the following code I generate wich record ID's should be updated:
<pre id=code><font face=courier size=2 id=code>
DeSkuorre_Index = 0
while (NOT WA_eCart_EOF(DeSkuorre))
DeSkuorre_Index = DeSkuorre.DisplayIndex - 1
response.write "Id: " & WA_eCart_DisplayInfo(DeSkuorre, "Id"
set DeSkuorre = WA_eCart_MoveNext(DeSkuorre)
wend
set DeSkuorre = WA_eCart_MoveFirst(DeSkuorre)
</font id=code></pre id=code>
How can I update the records that are bought? I can retrieve the record ID.