To catch errors do something like this
$req = $conn->prepare('INSERT INTO renter (email, msg_text) VALUES(?, ?)');
if(!$req){
echo "Prepare failed: (". $conn->errno.") ".$conn->error."
";
}
since prepare returns a boolean. Please use when debugging you code and refer to error reporting as stated in the comment.