This one's puzzling me. I have a MySQL query, being run though PDO:
$stmt = $db->prepare( "UPDATE member SET acode='' AND status='active' WHERE username=:u" );
$stmt->bindValue( ':u', $member->username, PDO::PARAM_STR );
$stmt->execute();
The acode
field gets set to 0 for some reason. It was created with
`acode` varchar(8) NOT NULL
Is there something special I need to do when using prepared statements?