I want to insert data in a table only if the record with a given CatalogID does not exist.
CatalogID
$userId = $_POST[\'userId\']; $catalogID = $_POST[\
Create a UNIQUE index on CatalogID.
UNIQUE