Skip to content

Latest commit

 

History

History
58 lines (43 loc) · 1.03 KB

README.md

File metadata and controls

58 lines (43 loc) · 1.03 KB

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