how do you prevent the entry of duplicate records in php mysql? validating input before insertion to the table.
i am currently building a user registration section for my website but want to present them with an error if a duplicate username or email address is found in the database.
any ideas would be appreciated... thanks!