Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想知道mysqli_stmt_bind_result()PDO中的语法是什么
mysqli_stmt_bind_result()
我需要转换: mysqli_stmt_bind_result($stmt, $row->Expenses ); 在 PDO 中
mysqli_stmt_bind_result($stmt, $row->Expenses );
功能是PDOStatement::bindColumn。它以非常相似的方式使用:
PDOStatement::bindColumn
$stmt->bindColumn('column', $row->Expenses);
wherecolumn是数据库中列的名称。
column