En basit haliyle;
$x = mysql_query("INSERT INTO ...
true olarak dönerse if($x) { echo 'eklendi'; } gibi birşey yapabilrisin.