You need to do it in following manner:-
For more knowledge refer link and it's example:- http://php.net/manual/en/mysqli.prepare.php