-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathextra.php
More file actions
61 lines (34 loc) · 919 Bytes
/
extra.php
File metadata and controls
61 lines (34 loc) · 919 Bytes
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
<?php
$this->error ="connection failed ".this->links->connect_error ;
public function select ($query){
$result=$this->link->query($query);
if($result->num_rows>0){
return $result;
}
}
public function insert ($query){
$insert=$this->link->query($query);
if($insert){
header('location:indux.php?insert= Post inserted...');
}else{
echo"did not insert";
}
}
public function update ($query){
$update=$this->link->query($query);
if($update){
header('location:indux.php?insert= Post updated...');
}else{
echo"did not update";
}
}
<a class="readmore" href="single.php?id=<?php echo $row ['id']; ?>">Read More</a>
public function delete($query){
$delete=$this->links->query($query);
if($delete){
header('location:indux.php?insert= Post deleted...');
}else{
echo"did not delete";
}
}
?>