orderitem.php
1.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
<?php
$items = array(array(
'id'=>1,
'order_id'=>1,
'product'=>'Chair',
'price'=>13.43,
'quantity'=>1
), array(
'id'=>2,
'order_id'=>1,
'product'=>'Stool',
'price'=>14.55,
'quantity'=>2
), array(
'id'=>3,
'order_id'=>1,
'product'=>'Table',
'price'=>44.2,
'quantity'=>1
),array(
'id'=>4,
'order_id'=>2,
'product'=>'Chair',
'price'=>13.43,
'quantity'=>3
), array(
'id'=>5,
'order_id'=>2,
'product'=>'Stool',
'price'=>14.55,
'quantity'=>6
), array(
'id'=>6,
'order_id'=>2,
'product'=>'Table',
'price'=>44.2,
'quantity'=>2
), array(
'id'=>7,
'order_id'=>3,
'product'=>'Chair',
'price'=>13.43,
'quantity'=>1
), array(
'id'=>8,
'order_id'=>3,
'product'=>'Stool',
'price'=>14.55,
'quantity'=>2
),array(
'id'=>9,
'order_id'=>4,
'product'=>'Table',
'price'=>44.2,
'quantity'=>1
), array(
'id'=>10,
'order_id'=>5,
'product'=>'Stool',
'price'=>14.55,
'quantity'=>2
), array(
'id'=>11,
'order_id'=>5,
'product'=>'Table',
'price'=>44.2,
'quantity'=>2
), array(
'id'=>12,
'order_id'=>6,
'product'=>'Chair',
'price'=>13.43,
'quantity'=>2
), array(
'id'=>13,
'order_id'=>6,
'product'=>'Stool',
'price'=>14.55,
'quantity'=>4
), array(
'id'=>14,
'order_id'=>6,
'product'=>'Table',
'price'=>44.2,
'quantity'=>1
)
);
echo json_encode($items);
?>