With a HTML/php Webinterface i am putting some variables to a mysql datebase. The query works fine like this:
INSERT INTO ". $tabledb_stack ." (ANr, Operator) VALUES ('". $ANr ."', '". $Operator ."')
But now i need to check if the ANr Value is already in the database. But just the ANr number and no other Value. Then it should not write it into the database. I tried with a WHERE NOT EXISTS statement, but it isnt working.
Any hints how i can try it?
Thx