Wamp Server database Info

I connected my website to wamp server but when i put in the registration information , the information doesn’t shows up in my database . I made sure everything is in place but i cant find the problem i tried multiple tutorials and nothing helps at all . Does anybody know what i should do ?

This is my code in my register.php file :


if(isset($_POST['Register'])) {

    $firstname= @$_POST['First Name'];
    $lastname= @$_POST['Last Name'];
    $username= @$_POST['Username'];
    $password= @$_POST['Password'];
    $password2= @$_POST['Password2'];
    $email= @$_POST['Email'];
    $email2= @$_POST['Email2'];
    $submit= @$_POST['Register'];

     $sql= mysqli_query("SELECT * FROM `users` ('', '$firstname', '$lastname',    '$username', '$password', '$password2', '$email', '$email2')")
        or die ("It didnt work");
<link rel="stylesheet" type="text/css" href="css.css" >
<body bgcolor="#E6E6FA">

<div id="logo">
<h1> InterFace</h1>

  <form action="#" method="POST">
 <p align="right"><input type="text" name="firstname" size="35" id="First Name" placeholder="First Name" /></p>
 <p align="right"><input type="text" name="lastname" size="35" id="Last Name"  placeholder="Last Name" /></p>
 <p align="right"><input type="text" name="username" size="35" id="Username"  placeholder="User Name" /></p>
  <p align="right"><input type="password" name="password" size="35"  id="Password" placeholder="Password" /></p>
 <p align="right"><input type="password" name="password2" size="35"  id="Password2" placeholder="Confirm Password" /></p>
 <p align="right"><input type="text" name="email" size="35"  id="Email" placeholder="E-mail" /></p>
 <p align="right"><input type="text" name="email2" size="35"  id="Email2" placeholder="E-mail confirm" /></p>
 <p align="right"><input type="submit" name="reg" value="Register"></p>


Source: wampserver

Leave a Reply