Skip to content

Commit 7e5aa4c

Browse files
authored
Update process.php
1 parent 6c6fa37 commit 7e5aa4c

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

process.php

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,14 @@
11
<?php
22
error_reporting( E_ALL & ~E_DEPRECATED & ~E_NOTICE );
3-
// Establishing connection with server by passing "server_name", "user_id", "password"
4-
$conn = mysqli_connect("localhost", "root", "","lotus");
5-
6-
// Selecting Database by passing "nightfury" and above connection variable
7-
3+
// Establishing connection with server by passing "server_name", "user_id", "password" ,"database_name"
4+
$conn = mysqli_connect("server_name", "user_id", "password","database_name");
85

96
//Fetching Values from URL
107
$name =$_POST['Name'];
118
$msg =$_POST['Message'];
129

1310
//Insert query
14-
$sql = "insert into trash (name,msg) values ('$name','$msg')";
11+
$sql = "insert into formsub (name,msg) values ('$name','$msg')";
1512
$query = mysqli_query( $conn,$sql);
1613
if($query){
1714
echo "Working good";

0 commit comments

Comments
 (0)