質問編集履歴
1
書籍の改善
test
CHANGED
File without changes
|
test
CHANGED
@@ -90,24 +90,14 @@
|
|
90
90
|
|
91
91
|
$isComingCarts = $_POST["isComingCarts"] ;
|
92
92
|
|
93
|
-
|
94
|
-
|
95
93
|
$cart1Id = $_POST["cart1Id"];
|
96
94
|
|
97
|
-
|
98
|
-
|
99
95
|
$cart2Id = $_POST["cart2Id"];
|
100
96
|
|
101
|
-
|
102
|
-
|
103
97
|
$cart3Id = $_POST["cart3Id"];
|
104
98
|
|
105
|
-
|
106
|
-
|
107
99
|
$cart4Id = $_POST["cart4Id"];
|
108
100
|
|
109
|
-
|
110
|
-
|
111
101
|
$cart5Id = $_POST["cart5Id"];
|
112
102
|
|
113
103
|
|
@@ -118,20 +108,12 @@
|
|
118
108
|
|
119
109
|
$cart1Volume = $_POST["cart1Volume"];
|
120
110
|
|
121
|
-
|
122
|
-
|
123
111
|
$cart2Volume = $_POST["cart2Volume"];
|
124
112
|
|
125
|
-
|
126
|
-
|
127
113
|
$cart3Volume = $_POST["cart3Volume"];
|
128
114
|
|
129
|
-
|
130
|
-
|
131
115
|
$cart4Volume = $_POST["cart4Volume"];
|
132
116
|
|
133
|
-
|
134
|
-
|
135
117
|
$cart5Volume = $_POST["cart5Volume"];
|
136
118
|
|
137
119
|
|
@@ -142,20 +124,12 @@
|
|
142
124
|
|
143
125
|
$cart1Image = $_POST["cart1Image"];
|
144
126
|
|
145
|
-
|
146
|
-
|
147
127
|
$cart2Image = $_POST["cart2Image"];
|
148
128
|
|
149
|
-
|
150
|
-
|
151
129
|
$cart3Image = $_POST["cart3Image"];
|
152
130
|
|
153
|
-
|
154
|
-
|
155
131
|
$cart4Image = $_POST["cart4Image"];
|
156
132
|
|
157
|
-
|
158
|
-
|
159
133
|
$cart5Image = $_POST["cart5Image"];
|
160
134
|
|
161
135
|
|
@@ -164,20 +138,12 @@
|
|
164
138
|
|
165
139
|
$cart1Tittle = $_POST["cart1Tittle"];
|
166
140
|
|
167
|
-
|
168
|
-
|
169
141
|
$cart2Tittle = $_POST["cart2Tittle"];
|
170
142
|
|
171
|
-
|
172
|
-
|
173
143
|
$cart3Tittle = $_POST["cart3Tittle"];
|
174
144
|
|
175
|
-
|
176
|
-
|
177
145
|
$cart4Tittle = $_POST["cart4Tittle"];
|
178
146
|
|
179
|
-
|
180
|
-
|
181
147
|
$cart5Tittle = $_POST["cart5Tittle"];
|
182
148
|
|
183
149
|
|
@@ -186,20 +152,12 @@
|
|
186
152
|
|
187
153
|
$cart1Price = $_POST["cart1Price"];
|
188
154
|
|
189
|
-
|
190
|
-
|
191
155
|
$cart2Price = $_POST["cart2Price"];
|
192
156
|
|
193
|
-
|
194
|
-
|
195
157
|
$cart3Price = $_POST["cart3Price"];
|
196
158
|
|
197
|
-
|
198
|
-
|
199
159
|
$cart4Price = $_POST["cart4Price"];
|
200
160
|
|
201
|
-
|
202
|
-
|
203
161
|
$cart5Price = $_POST["cart5Price"];
|
204
162
|
|
205
163
|
|
@@ -232,16 +190,10 @@
|
|
232
190
|
|
233
191
|
$fullName = $_POST["fullName"];
|
234
192
|
|
235
|
-
|
236
|
-
|
237
193
|
$postalCode = $_POST["postalCode"];
|
238
194
|
|
239
|
-
|
240
|
-
|
241
195
|
$streetAddress = $_POST["streetAddress"];
|
242
196
|
|
243
|
-
|
244
|
-
|
245
197
|
$phoneNumber = $_POST["phoneNumber"];
|
246
198
|
|
247
199
|
|
@@ -304,6 +256,256 @@
|
|
304
256
|
|
305
257
|
|
306
258
|
|
259
|
+
|
260
|
+
|
261
|
+
|
262
|
+
|
263
|
+
|
264
|
+
|
265
|
+
|
266
|
+
|
267
|
+
|
268
|
+
|
269
|
+
}else if($isComingCarts == 1){
|
270
|
+
|
271
|
+
|
272
|
+
|
273
|
+
|
274
|
+
|
275
|
+
|
276
|
+
|
277
|
+
|
278
|
+
|
279
|
+
$purchaseCode = str_shuffle("ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789abcdefghijklmnopqrstuvwxyz");
|
280
|
+
|
281
|
+
|
282
|
+
|
283
|
+
$stmt = $dbh->prepare('INSERT INTO purchasehistory (purchaseCode,userName,fullName,postalCode,streetAddress,phoneNumber,image,tittle,volume,price,id,randomCode) values(?,?,?,?,?,?,?,?,?,?,?,?)');
|
284
|
+
|
285
|
+
|
286
|
+
|
287
|
+
$stmt->bindValue(1,$purchaseCode,PDO::PARAM_STR);
|
288
|
+
|
289
|
+
$stmt->bindValue(2,$userName,PDO::PARAM_STR);
|
290
|
+
|
291
|
+
$stmt->bindValue(3,$fullName,PDO::PARAM_STR);
|
292
|
+
|
293
|
+
$stmt->bindValue(4,$$postalCode,PDO::PARAM_INT);
|
294
|
+
|
295
|
+
$stmt->bindValue(5,$streetAddress,PDO::PARAM_STR);
|
296
|
+
|
297
|
+
$stmt->bindValue(6,$phoneNumber,PDO::PARAM_INT);
|
298
|
+
|
299
|
+
$stmt->bindValue(7,$cart1Image,PDO::PARAM_STR);
|
300
|
+
|
301
|
+
$stmt->bindValue(8,$cart1Tittle,PDO::PARAM_INT);
|
302
|
+
|
303
|
+
$stmt->bindValue(9,$cart1Volume,PDO::PARAM_INT);
|
304
|
+
|
305
|
+
$stmt->bindValue(10,$cart1Price,PDO::PARAM_INT);
|
306
|
+
|
307
|
+
$stmt->bindValue(11,$cart1Id,PDO::PARAM_STR);
|
308
|
+
|
309
|
+
$stmt->bindValue(12,$cart1RandomCode,PDO::PARAM_STR);
|
310
|
+
|
311
|
+
|
312
|
+
|
313
|
+
$stmt->execute();
|
314
|
+
|
315
|
+
|
316
|
+
|
317
|
+
|
318
|
+
|
319
|
+
|
320
|
+
|
321
|
+
$purchaseCode = str_shuffle("ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789abcdefghijklmnopqrstuvwxyz");
|
322
|
+
|
323
|
+
|
324
|
+
|
325
|
+
$stmt = $dbh->prepare('INSERT INTO purchasehistory (purchaseCode,userName,fullName,postalCode,streetAddress,phoneNumber,image,tittle,volume,price,id,randomCode) values(?,?,?,?,?,?,?,?,?,?,?,?)');
|
326
|
+
|
327
|
+
|
328
|
+
|
329
|
+
$stmt->bindValue(1,$purchaseCode,PDO::PARAM_STR);
|
330
|
+
|
331
|
+
$stmt->bindValue(2,$userName,PDO::PARAM_STR);
|
332
|
+
|
333
|
+
$stmt->bindValue(3,$fullName,PDO::PARAM_STR);
|
334
|
+
|
335
|
+
$stmt->bindValue(4,$$postalCode,PDO::PARAM_INT);
|
336
|
+
|
337
|
+
$stmt->bindValue(5,$streetAddress,PDO::PARAM_STR);
|
338
|
+
|
339
|
+
$stmt->bindValue(6,$phoneNumber,PDO::PARAM_INT);
|
340
|
+
|
341
|
+
$stmt->bindValue(7,$cart2Image,PDO::PARAM_STR);
|
342
|
+
|
343
|
+
$stmt->bindValue(8,$cart2Tittle,PDO::PARAM_INT);
|
344
|
+
|
345
|
+
$stmt->bindValue(9,$cart2Volume,PDO::PARAM_INT);
|
346
|
+
|
347
|
+
$stmt->bindValue(10,$cart2Price,PDO::PARAM_INT);
|
348
|
+
|
349
|
+
$stmt->bindValue(11,$cart2Id,PDO::PARAM_STR);
|
350
|
+
|
351
|
+
$stmt->bindValue(12,$cart2RandomCode,PDO::PARAM_STR);
|
352
|
+
|
353
|
+
|
354
|
+
|
355
|
+
|
356
|
+
|
357
|
+
$stmt->execute();
|
358
|
+
|
359
|
+
|
360
|
+
|
361
|
+
|
362
|
+
|
363
|
+
|
364
|
+
|
365
|
+
$purchaseCode = str_shuffle("ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789abcdefghijklmnopqrstuvwxyz");
|
366
|
+
|
367
|
+
|
368
|
+
|
369
|
+
$stmt = $dbh->prepare('INSERT INTO purchasehistory (purchaseCode,userName,fullName,postalCode,streetAddress,phoneNumber,image,tittle,volume,price,id,randomCode) values(?,?,?,?,?,?,?,?,?,?,?,?)');
|
370
|
+
|
371
|
+
|
372
|
+
|
373
|
+
$stmt->bindValue(1,$purchaseCode,PDO::PARAM_STR);
|
374
|
+
|
375
|
+
$stmt->bindValue(2,$userName,PDO::PARAM_STR);
|
376
|
+
|
377
|
+
$stmt->bindValue(3,$fullName,PDO::PARAM_STR);
|
378
|
+
|
379
|
+
$stmt->bindValue(4,$$postalCode,PDO::PARAM_INT);
|
380
|
+
|
381
|
+
$stmt->bindValue(5,$streetAddress,PDO::PARAM_STR);
|
382
|
+
|
383
|
+
$stmt->bindValue(6,$phoneNumber,PDO::PARAM_INT);
|
384
|
+
|
385
|
+
$stmt->bindValue(7,$cart3Image,PDO::PARAM_STR);
|
386
|
+
|
387
|
+
$stmt->bindValue(8,$cart3Tittle,PDO::PARAM_INT);
|
388
|
+
|
389
|
+
$stmt->bindValue(9,$cart3Volume,PDO::PARAM_INT);
|
390
|
+
|
391
|
+
$stmt->bindValue(10,$cart3Price,PDO::PARAM_INT);
|
392
|
+
|
393
|
+
$stmt->bindValue(11,$cart3Id,PDO::PARAM_STR);
|
394
|
+
|
395
|
+
$stmt->bindValue(12,$cart3RandomCode,PDO::PARAM_STR);
|
396
|
+
|
397
|
+
|
398
|
+
|
399
|
+
$stmt->execute();
|
400
|
+
|
401
|
+
|
402
|
+
|
403
|
+
|
404
|
+
|
405
|
+
|
406
|
+
|
407
|
+
$purchaseCode = str_shuffle("ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789abcdefghijklmnopqrstuvwxyz");
|
408
|
+
|
409
|
+
|
410
|
+
|
411
|
+
$stmt = $dbh->prepare('INSERT INTO purchasehistory (purchaseCode,userName,fullName,postalCode,streetAddress,phoneNumber,image,tittle,volume,price,id,randomCode) values(?,?,?,?,?,?,?,?,?,?,?,?)');
|
412
|
+
|
413
|
+
|
414
|
+
|
415
|
+
$stmt->bindValue(1,$purchaseCode,PDO::PARAM_STR);
|
416
|
+
|
417
|
+
$stmt->bindValue(2,$userName,PDO::PARAM_STR);
|
418
|
+
|
419
|
+
$stmt->bindValue(3,$fullName,PDO::PARAM_STR);
|
420
|
+
|
421
|
+
$stmt->bindValue(4,$$postalCode,PDO::PARAM_INT);
|
422
|
+
|
423
|
+
$stmt->bindValue(5,$streetAddress,PDO::PARAM_STR);
|
424
|
+
|
425
|
+
$stmt->bindValue(6,$phoneNumber,PDO::PARAM_INT);
|
426
|
+
|
427
|
+
$stmt->bindValue(7,$cart4Image,PDO::PARAM_STR);
|
428
|
+
|
429
|
+
$stmt->bindValue(8,$cart4Tittle,PDO::PARAM_INT);
|
430
|
+
|
431
|
+
$stmt->bindValue(9,$cart4Volume,PDO::PARAM_INT);
|
432
|
+
|
433
|
+
$stmt->bindValue(10,$cart4Price,PDO::PARAM_INT);
|
434
|
+
|
435
|
+
$stmt->bindValue(11,$cart4Id,PDO::PARAM_STR);
|
436
|
+
|
437
|
+
$stmt->bindValue(12,$cart4RandomCode,PDO::PARAM_STR);
|
438
|
+
|
439
|
+
|
440
|
+
|
441
|
+
$stmt->execute();
|
442
|
+
|
443
|
+
|
444
|
+
|
445
|
+
|
446
|
+
|
447
|
+
|
448
|
+
|
449
|
+
$purchaseCode = str_shuffle("ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789abcdefghijklmnopqrstuvwxyz");
|
450
|
+
|
451
|
+
|
452
|
+
|
453
|
+
$stmt = $dbh->prepare('INSERT INTO purchasehistory (purchaseCode,userName,fullName,postalCode,streetAddress,phoneNumber,image,tittle,volume,price,id,randomCode) values(?,?,?,?,?,?,?,?,?,?,?,?)');
|
454
|
+
|
455
|
+
|
456
|
+
|
457
|
+
$stmt->bindValue(1,$purchaseCode,PDO::PARAM_STR);
|
458
|
+
|
459
|
+
$stmt->bindValue(2,$userName,PDO::PARAM_STR);
|
460
|
+
|
461
|
+
$stmt->bindValue(3,$fullName,PDO::PARAM_STR);
|
462
|
+
|
463
|
+
$stmt->bindValue(4,$$postalCode,PDO::PARAM_INT);
|
464
|
+
|
465
|
+
$stmt->bindValue(5,$streetAddress,PDO::PARAM_STR);
|
466
|
+
|
467
|
+
$stmt->bindValue(6,$phoneNumber,PDO::PARAM_INT);
|
468
|
+
|
469
|
+
$stmt->bindValue(7,$cart5Image,PDO::PARAM_STR);
|
470
|
+
|
471
|
+
$stmt->bindValue(8,$cart5Tittle,PDO::PARAM_INT);
|
472
|
+
|
473
|
+
$stmt->bindValue(9,$cart5Volume,PDO::PARAM_INT);
|
474
|
+
|
475
|
+
$stmt->bindValue(10,$cart5Price,PDO::PARAM_INT);
|
476
|
+
|
477
|
+
$stmt->bindValue(11,$cart5Id,PDO::PARAM_STR);
|
478
|
+
|
479
|
+
$stmt->bindValue(12,$cart5RandomCode,PDO::PARAM_STR);
|
480
|
+
|
481
|
+
|
482
|
+
|
483
|
+
$stmt->execute();
|
484
|
+
|
485
|
+
|
486
|
+
|
487
|
+
|
488
|
+
|
489
|
+
|
490
|
+
|
491
|
+
|
492
|
+
|
493
|
+
|
494
|
+
|
495
|
+
|
496
|
+
|
497
|
+
|
498
|
+
|
499
|
+
|
500
|
+
|
501
|
+
|
502
|
+
|
503
|
+
|
504
|
+
|
505
|
+
}
|
506
|
+
|
507
|
+
|
508
|
+
|
307
509
|
header('Location:../../salesPage/no1.php');
|
308
510
|
|
309
511
|
|
@@ -314,256 +516,6 @@
|
|
314
516
|
|
315
517
|
|
316
518
|
|
317
|
-
}else if($isComingCarts == 1){
|
318
|
-
|
319
|
-
|
320
|
-
|
321
|
-
|
322
|
-
|
323
|
-
|
324
|
-
|
325
|
-
|
326
|
-
|
327
|
-
$purchaseCode = str_shuffle("ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789abcdefghijklmnopqrstuvwxyz");
|
328
|
-
|
329
|
-
|
330
|
-
|
331
|
-
$stmt = $dbh->prepare('INSERT INTO purchasehistory (purchaseCode,userName,fullName,postalCode,streetAddress,phoneNumber,image,tittle,volume,price,id,randomCode) values(?,?,?,?,?,?,?,?,?,?,?,?)');
|
332
|
-
|
333
|
-
|
334
|
-
|
335
|
-
$stmt->bindValue(1,$purchaseCode,PDO::PARAM_STR);
|
336
|
-
|
337
|
-
$stmt->bindValue(2,$userName,PDO::PARAM_STR);
|
338
|
-
|
339
|
-
$stmt->bindValue(3,$fullName,PDO::PARAM_STR);
|
340
|
-
|
341
|
-
$stmt->bindValue(4,$$postalCode,PDO::PARAM_INT);
|
342
|
-
|
343
|
-
$stmt->bindValue(5,$streetAddress,PDO::PARAM_STR);
|
344
|
-
|
345
|
-
$stmt->bindValue(6,$phoneNumber,PDO::PARAM_INT);
|
346
|
-
|
347
|
-
$stmt->bindValue(7,$cart1Image,PDO::PARAM_STR);
|
348
|
-
|
349
|
-
$stmt->bindValue(8,$cart1Tittle,PDO::PARAM_INT);
|
350
|
-
|
351
|
-
$stmt->bindValue(9,$cart1Volume,PDO::PARAM_INT);
|
352
|
-
|
353
|
-
$stmt->bindValue(10,$cart1Price,PDO::PARAM_INT);
|
354
|
-
|
355
|
-
$stmt->bindValue(11,$cart1Id,PDO::PARAM_STR);
|
356
|
-
|
357
|
-
$stmt->bindValue(12,$cart1RandomCode,PDO::PARAM_INT);
|
358
|
-
|
359
|
-
|
360
|
-
|
361
|
-
$stmt->execute();
|
362
|
-
|
363
|
-
|
364
|
-
|
365
|
-
|
366
|
-
|
367
|
-
|
368
|
-
|
369
|
-
$purchaseCode = str_shuffle("ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789abcdefghijklmnopqrstuvwxyz");
|
370
|
-
|
371
|
-
|
372
|
-
|
373
|
-
$stmt = $dbh->prepare('INSERT INTO purchasehistory (purchaseCode,userName,fullName,postalCode,streetAddress,phoneNumber,image,tittle,volume,price,id,randomCode) values(?,?,?,?,?,?,?,?,?,?,?,?)');
|
374
|
-
|
375
|
-
|
376
|
-
|
377
|
-
$stmt->bindValue(1,$purchaseCode,PDO::PARAM_STR);
|
378
|
-
|
379
|
-
$stmt->bindValue(2,$userName,PDO::PARAM_STR);
|
380
|
-
|
381
|
-
$stmt->bindValue(3,$fullName,PDO::PARAM_STR);
|
382
|
-
|
383
|
-
$stmt->bindValue(4,$$postalCode,PDO::PARAM_INT);
|
384
|
-
|
385
|
-
$stmt->bindValue(5,$streetAddress,PDO::PARAM_STR);
|
386
|
-
|
387
|
-
$stmt->bindValue(6,$phoneNumber,PDO::PARAM_INT);
|
388
|
-
|
389
|
-
$stmt->bindValue(7,$cart2Image,PDO::PARAM_STR);
|
390
|
-
|
391
|
-
$stmt->bindValue(8,$cart2Tittle,PDO::PARAM_INT);
|
392
|
-
|
393
|
-
$stmt->bindValue(9,$cart2Volume,PDO::PARAM_INT);
|
394
|
-
|
395
|
-
$stmt->bindValue(10,$cart2Price,PDO::PARAM_INT);
|
396
|
-
|
397
|
-
$stmt->bindValue(11,$cart2Id,PDO::PARAM_STR);
|
398
|
-
|
399
|
-
|
400
|
-
|
401
|
-
|
402
|
-
|
403
|
-
|
404
|
-
|
405
|
-
$stmt->execute();
|
406
|
-
|
407
|
-
|
408
|
-
|
409
|
-
|
410
|
-
|
411
|
-
|
412
|
-
|
413
|
-
$purchaseCode = str_shuffle("ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789abcdefghijklmnopqrstuvwxyz");
|
414
|
-
|
415
|
-
|
416
|
-
|
417
|
-
$stmt = $dbh->prepare('INSERT INTO purchasehistory (purchaseCode,userName,fullName,postalCode,streetAddress,phoneNumber,image,tittle,volume,price,id,randomCode) values(?,?,?,?,?,?,?,?,?,?,?,?)');
|
418
|
-
|
419
|
-
|
420
|
-
|
421
|
-
$stmt->bindValue(1,$purchaseCode,PDO::PARAM_STR);
|
422
|
-
|
423
|
-
$stmt->bindValue(2,$userName,PDO::PARAM_STR);
|
424
|
-
|
425
|
-
$stmt->bindValue(3,$fullName,PDO::PARAM_STR);
|
426
|
-
|
427
|
-
$stmt->bindValue(4,$$postalCode,PDO::PARAM_INT);
|
428
|
-
|
429
|
-
$stmt->bindValue(5,$streetAddress,PDO::PARAM_STR);
|
430
|
-
|
431
|
-
$stmt->bindValue(6,$phoneNumber,PDO::PARAM_INT);
|
432
|
-
|
433
|
-
$stmt->bindValue(7,$cart3Image,PDO::PARAM_STR);
|
434
|
-
|
435
|
-
$stmt->bindValue(8,$cart3Tittle,PDO::PARAM_INT);
|
436
|
-
|
437
|
-
$stmt->bindValue(9,$cart3Volume,PDO::PARAM_INT);
|
438
|
-
|
439
|
-
$stmt->bindValue(10,$cart3Price,PDO::PARAM_INT);
|
440
|
-
|
441
|
-
$stmt->bindValue(11,$cart3Id,PDO::PARAM_STR);
|
442
|
-
|
443
|
-
$stmt->bindValue(12,$cart3RandomCode,PDO::PARAM_INT);
|
444
|
-
|
445
|
-
|
446
|
-
|
447
|
-
$stmt->execute();
|
448
|
-
|
449
|
-
|
450
|
-
|
451
|
-
|
452
|
-
|
453
|
-
|
454
|
-
|
455
|
-
$purchaseCode = str_shuffle("ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789abcdefghijklmnopqrstuvwxyz");
|
456
|
-
|
457
|
-
|
458
|
-
|
459
|
-
$stmt = $dbh->prepare('INSERT INTO purchasehistory (purchaseCode,userName,fullName,postalCode,streetAddress,phoneNumber,image,tittle,volume,price,id,randomCode) values(?,?,?,?,?,?,?,?,?,?,?,?)');
|
460
|
-
|
461
|
-
|
462
|
-
|
463
|
-
$stmt->bindValue(1,$purchaseCode,PDO::PARAM_STR);
|
464
|
-
|
465
|
-
$stmt->bindValue(2,$userName,PDO::PARAM_STR);
|
466
|
-
|
467
|
-
$stmt->bindValue(3,$fullName,PDO::PARAM_STR);
|
468
|
-
|
469
|
-
$stmt->bindValue(4,$$postalCode,PDO::PARAM_INT);
|
470
|
-
|
471
|
-
$stmt->bindValue(5,$streetAddress,PDO::PARAM_STR);
|
472
|
-
|
473
|
-
$stmt->bindValue(6,$phoneNumber,PDO::PARAM_INT);
|
474
|
-
|
475
|
-
$stmt->bindValue(7,$cart4Image,PDO::PARAM_STR);
|
476
|
-
|
477
|
-
$stmt->bindValue(8,$cart4Tittle,PDO::PARAM_INT);
|
478
|
-
|
479
|
-
$stmt->bindValue(9,$cart4Volume,PDO::PARAM_INT);
|
480
|
-
|
481
|
-
$stmt->bindValue(10,$cart4Price,PDO::PARAM_INT);
|
482
|
-
|
483
|
-
$stmt->bindValue(11,$cart4Id,PDO::PARAM_STR);
|
484
|
-
|
485
|
-
$stmt->bindValue(12,$cart4RandomCode,PDO::PARAM_INT);
|
486
|
-
|
487
|
-
|
488
|
-
|
489
|
-
$stmt->execute();
|
490
|
-
|
491
|
-
|
492
|
-
|
493
|
-
|
494
|
-
|
495
|
-
|
496
|
-
|
497
|
-
$purchaseCode = str_shuffle("ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789abcdefghijklmnopqrstuvwxyz");
|
498
|
-
|
499
|
-
|
500
|
-
|
501
|
-
$stmt = $dbh->prepare('INSERT INTO purchasehistory (purchaseCode,userName,fullName,postalCode,streetAddress,phoneNumber,image,tittle,volume,price,id,randomCode) values(?,?,?,?,?,?,?,?,?,?,?,?)');
|
502
|
-
|
503
|
-
|
504
|
-
|
505
|
-
$stmt->bindValue(1,$purchaseCode,PDO::PARAM_STR);
|
506
|
-
|
507
|
-
$stmt->bindValue(2,$userName,PDO::PARAM_STR);
|
508
|
-
|
509
|
-
$stmt->bindValue(3,$fullName,PDO::PARAM_STR);
|
510
|
-
|
511
|
-
$stmt->bindValue(4,$$postalCode,PDO::PARAM_INT);
|
512
|
-
|
513
|
-
$stmt->bindValue(5,$streetAddress,PDO::PARAM_STR);
|
514
|
-
|
515
|
-
$stmt->bindValue(6,$phoneNumber,PDO::PARAM_INT);
|
516
|
-
|
517
|
-
$stmt->bindValue(7,$cart5Image,PDO::PARAM_STR);
|
518
|
-
|
519
|
-
$stmt->bindValue(8,$cart5Tittle,PDO::PARAM_INT);
|
520
|
-
|
521
|
-
$stmt->bindValue(9,$cart5Volume,PDO::PARAM_INT);
|
522
|
-
|
523
|
-
$stmt->bindValue(10,$cart5Price,PDO::PARAM_INT);
|
524
|
-
|
525
|
-
$stmt->bindValue(11,$cart5Id,PDO::PARAM_STR);
|
526
|
-
|
527
|
-
$stmt->bindValue(12,$cart5RandomCode,PDO::PARAM_INT);
|
528
|
-
|
529
|
-
|
530
|
-
|
531
|
-
$stmt->execute();
|
532
|
-
|
533
|
-
|
534
|
-
|
535
|
-
|
536
|
-
|
537
|
-
|
538
|
-
|
539
|
-
|
540
|
-
|
541
|
-
|
542
|
-
|
543
|
-
|
544
|
-
|
545
|
-
|
546
|
-
|
547
|
-
|
548
|
-
|
549
|
-
|
550
|
-
|
551
|
-
|
552
|
-
|
553
|
-
}
|
554
|
-
|
555
|
-
|
556
|
-
|
557
|
-
header('Location:../../salesPage/no1.php');
|
558
|
-
|
559
|
-
|
560
|
-
|
561
|
-
|
562
|
-
|
563
|
-
|
564
|
-
|
565
|
-
|
566
|
-
|
567
519
|
}catch(PDOException $e){
|
568
520
|
|
569
521
|
print "表示エラー";
|