$sql = "INSERT INTO `Users`(`Name`, `Surname`, `Password`, `Email`, `Imagepath`) VALUES ('".$_POST["name"]."','".$_POST["surname"]."','".$_POST["password"]."','".$_POST["email"]."','".$filename."')";
$connect->query($sql);
echo '<pre>' ;
print_r($_FILES);
echo '</pre>' ;
const getTable = async() => {
let query = await fetch('/select-table', {method: 'POST'})
let data = await query.json()
$( '#table_id' ).DataTable({
data: data,
buttons: [ 'copy', 'csv', 'excel', 'pdf', 'print' ]
});
}
getTable()