-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.php
226 lines (210 loc) · 6.55 KB
/
index.php
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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<link href="https://fonts.googleapis.com/css?family=Open+Sans&display=swap" rel="stylesheet">
<title>Documentation</title>
</head>
<style>
body {
padding: 25px 80px;
font-family: 'Open Sans', sans-serif;
/* background: #F7F7F7; */
background: #f1f1f1;
}
table {
width: -webkit-fill-available;
/* background: white; */
padding: 10px;
text-align: left;
}
table .heading {
width: 20%;
}
.note {
color: #595959;
font-size: 13px;
font-weight: bold;
padding: 0 4px;
}
.code {
background: white;
padding: 10px;
width: fit-content;
border-radius: 6px;
font-weight: 600;
}
.code .example {
font-weight: normal;
}
.heading {
font-size: 1.5rem;
font-weight: bold;
}
.content {
line-height: 2;
}
.divider {
border-bottom: 1.5px solid #bcbcbc;
margin-top: 1rem;
margin-bottom: 1rem;
}
.orange {
color: #bf360c;
}
.purple {
color: #673ab7;
}
.lightblue {
color: #03a9f4;
}
.darkblue {
color: #0d47a1;
}
.teal {
color: #009688;
}
</style>
<body>
<h1>How to implement the code in your project!</h1>
<h3>First step <span style="color:red">(Important)</span> :</h3>
<div class="content">
<div>At the begining of your file, include the class.php file</div>
<div class="code">
<span class="example">Example :</span>
<div>
<span class="purple">require</span> <span class="orange">'controllers/class.php'</span>;
</div>
</div>
<div class="note">
Note: This class includes all the other sub classes in the folder controllers. You dont have to manually include all the other files
</div>
<br>
<div>To use any of the functions from class of class.php file, you need to create object of the class first</div>
<div class="code">
<span class="example">Example :</span>
<div>
<span class="lightblue">$obj </span>=<span class="darkblue"> new </span><span class="teal"> Operations </span>;
</div>
</div>
<div class="note">
Note: This class name of main class is "Operations"
</div>
</div>
<div class="divider"></div>
<h1>Function of the class "Operations"</h1>
<!-- Insert OP -->
<table>
<tr>
<td class="heading">insert</td>
<td class="content">
<span>This operation is used to insert data into database</span>
<div class="code">
<span class="example">Example :</span>
<div>
<span class="purple">require</span> <span class="orange">'controllers/class.php'</span>;
</div>
</div>
</td>
</tr>
</table>
<div class="divider"></div>
<!-- update OP -->
<table>
<tr>
<td class="heading">update</td>
<td class="content">
<span>this operation is used to insert data into database</span>
<div class="code">
<span class="example">Example :</span>
<div>
<span class="purple">require</span> <span class="orange">'controllers/class.php'</span>;
</div>
</div>
</td>
</tr>
</table>
<div class="divider"></div>
<!-- update OP -->
<table>
<tr>
<td class="heading">delete</td>
<td class="content">
<span>this operation is used to insert data into database</span>
<div class="code">
<span class="example">Example :</span>
<div>
<span class="purple">require</span> <span class="orange">'controllers/class.php'</span>;
</div>
</div>
</td>
</tr>
</table>
<div class="divider"></div>
<!-- update OP -->
<table>
<tr>
<td class="heading">SelectByID</td>
<td class="content">
<span>this operation is used to insert data into database</span>
<div class="code">
<span class="example">Example :</span>
<div>
<span class="purple">require</span> <span class="orange">'controllers/class.php'</span>;
</div>
</div>
</td>
</tr>
</table>
<div class="divider"></div>
<!-- update OP -->
<table>
<tr>
<td class="heading">SelectAll</td>
<td class="content">
<span>this operation is used to insert data into database</span>
<div class="code">
<span class="example">Example :</span>
<div>
<span class="purple">require</span> <span class="orange">'controllers/class.php'</span>;
</div>
</div>
</td>
</tr>
</table>
<div class="divider"></div>
<!-- update OP -->
<table>
<tr>
<td class="heading">SelectByArgs</td>
<td class="content">
<span>this operation is used to insert data into database</span>
<div class="code">
<span class="example">Example :</span>
<div>
<span class="purple">require</span> <span class="orange">'controllers/class.php'</span>;
</div>
</div>
</td>
</tr>
</table>
<div class="divider"></div>
<!-- update OP -->
<table>
<tr>
<td class="heading">Validate</td>
<td class="content">
<span>this operation is used to insert data into database</span>
<div class="code">
<span class="example">Example :</span>
<div>
<span class="purple">require</span> <span class="orange">'controllers/class.php'</span>;
</div>
</div>
</td>
</tr>
</table>
</body>
</html>