<?php
//Some connection/class info etc
if ( $ins = $db->prepare ('INSERT INTO `table` (`string`, `string`, `int`) VALUES (?,?,?)') ) {
$ins->bind_param('ssi', $strA, $strB, $int);
$ins->execute();
//Do more if needed
$ins->close();
} else {
//An error has occurred.
//$db->error;
}