Rehan6225 / Dbms_customercomplaints

Dbms Course project for inserting form data into database

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Customer Complaints Services regarding online shopping

Php Html Css

👀Overview

register

submit

database

📜Database connection

$server="localhost";
$username="root";
$password="";

$con=mysqli_connect($server,$username,$password);

if(!$con){
die("connection to this database failed due to" . mysqli_connect_error());
}
else{
echo "Database successfully connected"
}

📜Insertion into database

$sql="INSERT INTO `student_details`.`users` (`name`, `gender`, `email`, `tel`, `desc`)
VALUES ('$name', '$gender', '$email', '$phone', '$desc');";
//echo $sql;

if($con->query($sql)==true){
    //echo"successfully inserted";
    $insert=true;
}
else{
    echo "ERROR: $sql <br> $con->error";
}
$con->close();

💻What our website does?

  • Data Validation
  • Data Insertion into Database
  • Data retreival

About

Dbms Course project for inserting form data into database


Languages

Language:PHP 54.2%Language:HTML 35.2%Language:CSS 10.6%