Check if value exist already in db

A

Anonymous

Guest
Hi guys

I'm stuck, How can i check if a value exist already in the db. Lets say I have user id (uid) and registration id (regid). If a certain row in my table already has the same uid and regid, the page will display - you have already registered for this program. but if there's none it will proceed with the registration.

thank you very much.
 
Back
Top