-
Notifications
You must be signed in to change notification settings - Fork 0
/
feedback.php
44 lines (23 loc) · 899 Bytes
/
feedback.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
<?php
$con=mysql_connect("127.0.0.1","root","");
if (mysqli_connect_errno($con))
{
echo "Failed to connect to MySQL: " . mysqli_connect_error();
}
if(!mysql_select_db('dmn')){
echo'error database';
}
if(isset($_GET['app'])&&isset($_GET['service'])&&isset($_GET['gernal'])){
$app=$_GET['app'];
$service=$_GET['service'];
$gernal=$_GET['gernal'];
$id=$_GET['id'];
if(!empty($app)&&!empty($service)&&!empty($gernal)){
$iquery="INSERT INTO `feedback` VALUES(".mysql_real_escape_string($id).",'".mysql_real_escape_string($app)."','".mysql_real_escape_string($service)."','".mysql_real_escape_string($gernal)."')";
if(mysql_query($iquery)){
echo "Feedback Sent";
}else{echo mysql_error();}
}else{echo "some feilds are empty";}
}
@mysql_close($con);
?>