$query = $qry_contact_church_owner->prepare('INSERT IGNORE INTO contact_church_owner (
id_contact_church,
al_username
)
VALUES (
:id_contact_church,
:al_username
)');
$query->bindParam(':id_contact_church', $id_contact_church);
$query->bindParam(':al_username', $al_username, PDO::PARAM_INT);
When I run the code, the record is inserted even though there is already a record in the table.ASKER
ASKER
PHP is a widely-used server-side scripting language especially suited for web development, powering tens of millions of sites from Facebook to personal WordPress blogs. PHP is often paired with the MySQL relational database, but includes support for most other mainstream databases. By utilizing different Server APIs, PHP can work on many different web servers as a server-side scripting language.
TRUSTED BY
ASKER
Steve