Hi.
I am working on a php-mysql project.
My table contains a field called "ID", which i have declared as teh PRIMARY key.
but what i want is, that when the user tries ot insert record B into the table, an ERROR message should be displayed, showing that a record already exists with primary key =100....
I tried doing this as follows:
if('$id' in (mysql_query("Select ID from client") ))
{
echo "ERROR!";
}
else
{
run the query...
}
someone please help...
thx...