I can't really figure out how to use these functions correctly and its a little different from what I learned in VB.net. I have a form that users fill out and when they submit it, the data is inserted into a mysql database. Problem is it will accept duplicates as well as nothing at all. So I need to check for that before it get submited.
I was thinking something like:
if($_POST["value"]=="") then die {echo "There was no value entered"}; Else
if( ($_POST["value"]=mysql_fetch_array(mysql_connect("localhost", "username", "pass", profiles (user); ) ) Then{echo "already excist"}; Else
Continue code
The synex is wrong and the code needs to check every row in the user field to see if the value matches and I know this is nowhere close but could I get some help here.