Skip to content

Dbms Course project for inserting form data into database

Notifications You must be signed in to change notification settings

Rehan6225/Dbms_customercomplaints

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published