diff --git a/connect.php b/connect.php new file mode 100644 index 0000000..b366545 --- /dev/null +++ b/connect.php @@ -0,0 +1,14 @@ +connect_error) { + die("Connection failed: " . $conn->connect_error); +} +?> \ No newline at end of file diff --git a/delete.php b/delete.php new file mode 100644 index 0000000..5490cca --- /dev/null +++ b/delete.php @@ -0,0 +1,83 @@ + + + + + Delete + + + + + + +} + + + +
+
+

DELETE DATA


+
+ +
+ +
+ +
+ +
+ +
+
+
+ +
+
+ +
+
+ Success! New Record added successfully. +
; + } + " . mysqli_error($conn); + } +} +?> +
+ + \ No newline at end of file diff --git a/getuser.php b/getuser.php new file mode 100644 index 0000000..32f115e --- /dev/null +++ b/getuser.php @@ -0,0 +1,74 @@ + + + + + + + +
+
+

INSERT DATA


+
+ + +
+ +
+ +
+ +
+
+ +
+ +
+ +
+
+ +
+ +
+ +
+
+ + + +
+
+
+ +
+
+
+
+
+ + + + +
+ × + Success! New Record inserted successfully. +
+ " . mysqli_error($conn); + } + + +} + +//function for removing white space and special chars +function test_input($data) { + $data = trim($data); + $data = stripslashes($data); + $data = htmlspecialchars($data); + return $data; +} +?> diff --git a/select.php b/select.php new file mode 100644 index 0000000..cfd66b3 --- /dev/null +++ b/select.php @@ -0,0 +1,175 @@ + + + + + Select + + + + + + + + + + +
+
+

SELECT DATA


+
+ + +
+ +
+ +
+ +
+ + +
+
+
+
+
+
+ +
+
+
+
+
+ +
+All selected "; + # code... + $quer="SELECT * FROM `details` WHERE 1"; + $result=mysqli_query($conn, $quer); + if($result->num_rows > 0) + {?> + + + + + + + + + + + + + + + + + +
+ Name + + Phone + + Mail +
+ + + + + +
+ " . mysqli_error($conn); + } +} +?> +
+ +
+Selected with Contraints "; +$name=$_POST['name']; +$quer="SELECT * FROM `details` WHERE name='$name'"; + $result=mysqli_query($conn, $quer); + if($result->num_rows > 0) + {?> + + + + + + + + + + + + + + + + + +
+ Name + + Phone + + Mail +
+ + + + + +
+ " . mysqli_error($conn); + } + +} +?> +
+ + \ No newline at end of file diff --git a/webpage.php b/webpage.php new file mode 100644 index 0000000..ac34b90 --- /dev/null +++ b/webpage.php @@ -0,0 +1,318 @@ + + + + + Webpage + + + + + + + + + +
+
+ +
+ +
+
+

INSERT DATA


+
+ +
+
+ +
+ +
+
+ +
+ +
+ +
+
+ +
+ +
+ +
+
+ +
+
+
+ +
+
+
+
+
+
+ × + Success! New Record inserted successfully. +
+ " . mysqli_error($conn); + } + } //end of function + + + //function for removing white space and special chars + function test_input($data) { + $data = trim($data); + $data = stripslashes($data); + $data = htmlspecialchars($data); + return $data; + } + ?> + +
+
+
+ +
+
+ +

DELETE DATA


+ +
+
+
+ +
+ +

+
+
+ +
+
+ +
+
+
+ × + Success!Record Deleted successfully. +
+ " . mysqli_error($conn); + } + } + ?> +
+ +
+
+ +
+ +
+
+ +
+
+
+
+
+

SELECT DATA


+
+ +
+
+ +
+ +
+ + + + +
+
+
+ +
+
+
+
+ num_rows > 0) + {?> + + + + + + + + + + + + + + + + + + +
+ Name + + Phone + + Mail +
+ + + + + +
+ + " . mysqli_error($conn); + } + } + ?> + + num_rows > 0) + {?> + + + + + + + + + + + + + + + + + +
+ Name + + Phone + + Mail +
+ + + + + +
+ " . mysqli_error($conn); + } + + } + ?> +
+ +
+ + +
+
+
+ +
+ + + + + + + diff --git a/webpageAjax.php b/webpageAjax.php new file mode 100644 index 0000000..ac650d5 --- /dev/null +++ b/webpageAjax.php @@ -0,0 +1,60 @@ + + + Webpage + + + + + + + + + +
+
+

SELECT DATA


+
+ +
+
+ +
+ + +
+ + + + +
+
+
+ +
+
+
+
+ + + \ No newline at end of file