Below is my code..
$stmt->execute($params) is not getting executed
$name = $_REQUEST['name2'];
$surname = $_REQUEST['surname2'];
$add = $_REQUEST['add2'];
$pdo = new PDO( "mysql:host = localhost;dbname = employee", "xxx", "");
$stmt = $pdo->prepare( 'INSERT INTO test_differ VALUES( :name2 , :surname2 , :add2 )' );
$params = array( ':name2' => $name, ':surname2' => $surname, ':add2' => $add );
if ( !($stmt->execute($params))) {
echo "error in execution";
}
$pdo = null;