diff --git a/ajax.php b/ajax.php new file mode 100644 index 0000000..1cf34c0 --- /dev/null +++ b/ajax.php @@ -0,0 +1,49 @@ + + + + + + + + + Retrieval + + +
+ + + + + + + + + "; + echo ""; + echo ""; + echo ""; + echo ""; + } + mysqli_close($con); + ?> +
NamePhoneEmail
".$arr[$i]['name']."".$arr[$i]['phone']."".$arr[$i]['email']."
+
+ + diff --git a/connect.php b/connect.php new file mode 100644 index 0000000..48f9eb5 --- /dev/null +++ b/connect.php @@ -0,0 +1,14 @@ + \ No newline at end of file diff --git a/delete.php b/delete.php new file mode 100644 index 0000000..0d5ec4e --- /dev/null +++ b/delete.php @@ -0,0 +1,14 @@ +query($sql) == TRUE) + { + echo "RECORD DELETED"; + } + else + { + echo "error :" . $conn->error; + } + + $conn->close(); +?> \ No newline at end of file diff --git a/insert.php b/insert.php new file mode 100644 index 0000000..91f58a4 --- /dev/null +++ b/insert.php @@ -0,0 +1,30 @@ +" . mysqli_error($conn); + } + mysqli_close($conn); + ?> \ No newline at end of file diff --git a/select.php b/select.php new file mode 100644 index 0000000..4555d5b --- /dev/null +++ b/select.php @@ -0,0 +1,69 @@ +query($sql); + + if ($result->num_rows > 0) + { + echo "

Database

"; + echo ""; + echo ""; + echo ""; + echo ""; + echo ""; + echo ""; + while($row = $result->fetch_assoc()) + { + echo ""; + echo ""; + + } + echo "
Namephoneemail
"; + echo $row["name"]; + + echo ""; + echo $row["phone"]; + + echo ""; + echo $row["email"]; + echo "
"; + } + else + { + echo "No results"; + } + + $sql1 = "SELECT * FROM details WHERE name = 'Abhi' "; + $res1 = $conn->query($sql1); + + + if ($res1->num_rows > 0) + { + + + echo "

Database

"; + echo ""; + echo ""; + echo ""; + echo ""; + echo ""; + echo ""; + while($row = $res1->fetch_assoc()) + { + echo ""; + echo ""; + + } + echo "
Namephoneemail
"; + echo $row["name"]; + + echo ""; + echo $row["phone"]; + + echo ""; + echo $row["email"]; + echo "
"; + } + + +$conn->close(); + ?> diff --git a/web.php b/web.php new file mode 100644 index 0000000..9619fd7 --- /dev/null +++ b/web.php @@ -0,0 +1,20 @@ + + + +WEBPAGE + + + + + + + + +

Insert


+

+

Select


+

+

Delete


+

+ +