xPDO.prepare
Последнее обновление Oct 17th, 2026 | История страницы | Улучшить эту страницу | Сообщить о проблеме
Support the team building MODX with a monthly donation.
The budget raised through OpenCollective is transparent, including payouts, and any contributor can apply to be paid for their work on MODX.
Backers
Budget
$194 per month—let's make that $500!
Learn morexPDO::prepare¶
Готовит SQL-запрос к выполнению и возвращает объект PDOStatement либо false в случае ошибки. Перед выполнением привяжите к запросу параметры.
Синтаксис¶
\PDOStatement|boolean prepare (string $statement, [array $driver_options = array()])
Пример¶
$stmt = $xpdo->prepare('SELECT * FROM my_table WHERE id = :id');
$stmt->bindValue(':id', 42, PDO::PARAM_INT);
$stmt->execute();
Смотрите также¶
Support the team building MODX with a monthly donation.
The budget raised through OpenCollective is transparent, including payouts, and any contributor can apply to be paid for their work on MODX.
Backers
Budget
$194 per month—let's make that $500!
Learn more










