I'm making a multi-lingual dictionary. I have a problem with the data entry. I want to check if the word already exists in dictionaries database. if yes, notify me, else, insert it. Also the English table should contain this word. for example, the word feu = fire in french, if I added it, my script should check if 'fire' exists in english dictionary, if not add it.
I get funny results. I know it's due to a mistake in my code. I need your help.
} echo ".$dictionary." database entry
".$word." already exists in ".$dictionary." database";
mysql_query($query,$con)or die('couldnt execute query:'. mysql_error());
$dictionary Database entry
is already found in the English dictionary";
echo "$translation was not found in English dictionary, I just added it there.