Php/pear/db
提供: 初心者エンジニアの簡易メモ
sql値代入
$sql = "insert into table1"; $sql .= " values(?, ?)"; $params = array($data1, $data2); $result = $db->query($sql, $params);
$sql = "insert into table1"; $sql .= " values(?, ?)"; $params = array($data1, $data2); $result = $db->query($sql, $params);
|