-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathadd_input.php
More file actions
26 lines (16 loc) · 798 Bytes
/
Copy pathadd_input.php
File metadata and controls
26 lines (16 loc) · 798 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
<?php
include "db_connect.php";
$identifierfromform =$_GET["identifier"];
$Biomatfromform =$_GET["Biomat"];
$Seqfromform =$_GET["Seq"];
$Srcfromform =$_GET["Src"];
//echo $keywordfromforum; shows the keyword u are searching
// search for a word
$Biomatfromform = addslashes($Biomatfromform);
$Srcfromform=addslashes($Srcfromform);
echo "<h2>Adding new input details : ".$identifierfromform.",".$Biomatfromform." etc from ".$Srcfromform." from User : </h2>";
$sql = "INSERT INTO biologicaldata (identifier,Biomaterial_type,Sequences,Source) VALUES ('$identifierfromform','$Biomatfromform','$Seqfromform','$Srcfromform')";
$result = $mysqli->query($sql) or die(mysqli_error($mysqli));
include "All results.php";
?>
<a href='index.php'>Click me to go to home!!</a>