我有一个简单的 SQL 插入到两个字段 MySQL 表(记录)中:
其中'id'是主键(int)......而'photo'是一个mediumblob
$photo = <binaryfile>
$id = recordNo
$MYSQL = "INSERT INTO records (id, photo)
VALUES (?, ?)
ON DUPLICATE KEY UPDATE photo = ?";
$cursor->execute( *what goes in here? I have 3 ?'s but only 2 variables* );