I'm using the following php pdo code to insert data into mysql database, the insertion succeeded, however, the updated database is showing the string literals ':a', ':b' as values in respectively field. what's wrong?
$data = array( array('a' => 'John', 'b' => 'OK'), ); $st=$dbh->prepare("insert into mytable (a, b) values(':a', ':b')"); $st->execute($data) or print_r($st->errorInfo());