So I am having this issue where i am getting the values from the POST, but when the insert query runs nothing is showing in the database, but I am getting no errors and the echos work. Here is my files:
config.php:
<?php
$host = "000webhost.com";
$user = "a9257*****";
$pass = "*****";
$db = "a9257*****";
$connect = mysql_connect($host, $user, $pass);
mysql_select_db($db, $connect);
?>
Here is my submit.php:
<?php
include "config.php";
$fname = $_POST['fname'];
$lname = $_POST['lname'];
$email = $_POST['email'];
$pass = md5($_POST['pass']);
$insert = 'INSERT INTO tblUsers (userFirstName, userLastName, userEmail, userPassword) VALUES("'.$fname.'","'.$lname.'""'.$email.'","'.$pass.'")';
mysql_query($insert);
echo $fname;
echo $lname;
echo $email;
echo $pass;
?>
Any help will be much obliged.
mysql_query($insert) die('Error: ' . mysqli_error());and it will show errors.