<?php
if(isset($_post['name'])){
$mysqli = new mysqli('localhost','root','','interdet');
$statement =$mysqli->prepare("INSERT INTO detectives(name)VALUES(?)");
$statement->bind_param('ss',$_POST['name']);
// මෙතනත් වෙනස් කරලා බැලුව $statement->bind_param('s',$_POST['name']);
ඊත් හරියන්නේ...