<?php
session_start();
include("connection.php");
include("functions.php");
if($_SERVER['REQUEST_Method'] == "POST")
{
$full_name = $_POST['full_name'];
$employee_id = $_POST['employee_id'];
$branch_id = $_POST['branch_id'];
$password = $_POST['password'];
$confirm_password = $_POST['confirmpassword'];
$user_id = random_num(20)
$sql = "INSERT INTO Users (user_id,full_name,employee_id,branch_id,password,confirm_password) values ('user_id','$full_name','$employee_id','$branch_id','$password','$confirm_password')";
mysqli_query($conn,$sql);
header(Location:index.php)
die;
}
Parse error : syntax error, unexpected variable “$sql” in C:\xampp\htdocs\practise2\signup.php on line 15