From 0231c9ed9de4005b6ba944fccee550420f1d35a9 Mon Sep 17 00:00:00 2001
From: Mohamed feroz khan D <cb.en.p2cys21017@cb.students.amrita.edu>
Date: Thu, 12 Jan 2023 14:40:30 +0530
Subject: [PATCH] Update UI/php/details.php

---
 UI/php/details.php | 33 +++++++++++++++++++++++++++++++++
 1 file changed, 33 insertions(+)
 create mode 100644 UI/php/details.php

diff --git a/UI/php/details.php b/UI/php/details.php
new file mode 100644
index 0000000..643f74b
--- /dev/null
+++ b/UI/php/details.php
@@ -0,0 +1,33 @@
+<?php
+$server_name="localhost";
+$username="root";
+$password="";
+$database_name="blockchain_forensics_database";
+
+$conn=mysqli_connect($server_name,$username,$password,$database_name);
+
+if(!$conn)
+{
+	die("Connection Failed:" . mysqli_connect_error());
+
+}
+
+if(isset($_POST['save']))
+{	
+	 $Address = $_POST['Address'];
+	 $Transaction = $_POST['Transaction'];
+
+	 $sql_query = "INSERT INTO entry_details (Address,Transaction)
+	 VALUES ('$Address','$Transaction')";
+
+	 if (mysqli_query($conn, $sql_query)) 
+	 {
+		echo "New Details Entry inserted successfully !";
+	 } 
+	 else
+     {
+		echo "Error: " . $sql . "" . mysqli_error($conn);
+	 }
+	 mysqli_close($conn);
+}
+?>
-- 
GitLab