-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathoxygen.php
More file actions
64 lines (59 loc) · 1.5 KB
/
oxygen.php
File metadata and controls
64 lines (59 loc) · 1.5 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
<?php
echo "<html>\n";
echo "<body>\n";
$oxygen= array(
array (
'Rid' =>'1',
'reactant1' => 'H2S',
'reactant2' => 'O2',
'reactant3' => null,
'product1' => 'HS',
'product2' => 'OH',
'product3' => null,
),
array (
'Rid' =>'2',
'reactant1' => 'HS',
'reactant2' => 'OH',
'reactant3' => 'O2',
'product1' => 'SO2',
'product2' => 'H2O',
'product3' => null,
),
array (
'Rid' =>'3',
'reactant1' => 'H2S',
'reactant2' => 'O3',
'reactant3' => null,
'product1' => 'SO2',
'product2' => 'H2O',
'product3' => null,
),
array (
'Rid' =>'4',
'reactant1' => 'N2O',
'reactant2' => 'O3',
'reactant3' => null,
'product1' => 'NO2',
'product2' => 'O2',
'product3' => null,
),
array (
'Rid' =>'5',
'reactant1' => 'O3',
'reactant2' => 'O',
'reactant3' => null,
'product1' => 'O2',
'product2' => null,
'product3' => null,
),
);
include 'mysql.php';
foreach($oxygen as $data) {
$oxy = "INSERT INTO oxygen (Rid, reactant1, reactant2, reactant3, product1, product2, product3)
VALUES ('$data[Rid]', '$data[reactant1]', '$data[reactant2]', '$data[reactant3]', '$data[product1]', '$data[product2]', '$data[product3]')";
#echo $oxy;
five($oxy);
# echo "successfully inserted a reaction";
}
?>