TAILIEUCHUNG - Teach Yourself E-Commerce Programming with ASP in 21 Days phần 5

Tham khảo tài liệu 'teach yourself e-commerce programming with asp in 21 days phần 5', công nghệ thông tin, kỹ thuật lập trình phục vụ nhu cầu học tập, nghiên cứu và làm việc hiệu quả | I 232 Day 10 Listing continued 188 td 189 a href showpage showPage oid RS orderid os 2 show0rders show0rders 190 Not in Stock a 191 td 192 END IF 193 IF RS order_status 3 THEN 194 td bgcolor lightblue 195 b Shipped b 196 td 197 ELSE 198 td 199 a href showpage showPage oid RS order_id os 3 show0rders show0rders 200 Shipped a 201 td 202 END IF 203 tr 204 table 205 tr 206 table 207 208 209 WEND 210 211 hr 212 IF 1 THEN 213 Page 214 215 F0R i 1 T0 216 IF cINT showPage i THEN 217 218 b i b 1 219 ELSE 220 a href showpage i showorders show0rders 221 i 222 a 1 223 224 END IF 225 NEXT 226 IF allPages THEN 227 228 b All b 229 ELSE 230 a href showorders show0rders allPages 1 231 All Checking Out 233 I 232 a 233 234 END IF 235 END IF 236 237 238 body 239 html Analysis The first line in includes the file. You must include this file because the page makes use of the ADO constant adOpenStatic. In lines 3-8 all the form and URL variables are retrieved. These variables represent such things as the current page the ID of the order being updated and the new order status. Lines 10-16 assign default values to variables that don t have a value. For example if no page of orders has been selected the page defaults to the first page. In lines 18-20 a connection to the Microsoft Access database is opened. The System DSN named accessDSN is used to open the connection. Lines 22-37 are used to update the status of a particular order. This is accomplished with a SQL UPDATE statement. The UPDATE statement changes the value of the order_status column for the database record with a certain order ID. When an order s status is changed to shipped the order_shipdate column is also updated to reflect the current date. Otherwise if any other status is selected the order_ship-date column is assigned the value NULL. In lines 40-61 the order .

TAILIEUCHUNG - Chia sẻ tài liệu không giới hạn
Địa chỉ : 444 Hoang Hoa Tham, Hanoi, Viet Nam
Website : tailieuchung.com
Email : tailieuchung20@gmail.com
Tailieuchung.com là thư viện tài liệu trực tuyến, nơi chia sẽ trao đổi hàng triệu tài liệu như luận văn đồ án, sách, giáo trình, đề thi.
Chúng tôi không chịu trách nhiệm liên quan đến các vấn đề bản quyền nội dung tài liệu được thành viên tự nguyện đăng tải lên, nếu phát hiện thấy tài liệu xấu hoặc tài liệu có bản quyền xin hãy email cho chúng tôi.
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.