0
我想用bind参数打印预处理语句,我已经看到了一些答案,但它们不起作用。我试过以下东西:如何在mysql中打印预处理语句php
$stmt = $this->conn->prepare("SELECT * FROM topics WHERE subcategory_id IN (?)");
$stmt->bind_param("s", $subCategoryIds);
$stmt->execute();
print_r($stmt->__toString());
echo $stmt->fullQuery;