How to verify this checkbox is checked?

<?php
echo "<input type="checkbox" name="automatic" value="1" ".checked(1, get_option('automatic'))." />";

if (get_option('automatic') === '1') { require_once 'myfile.php'; }
?>

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)