[code]
<?php
//connect
$mysql = new PDO('mysql:host=127.0.0.1;dbname=dbname', 'user', 'password');
//query
$_query = $mysql -> prepare('SELECT * FROM `table` WHERE `pole` = ?');
$_query -> execute(array($placeholder));
$query = $_query -> fetch();
?>
[/code]