got this:
if (mysql_num_rows($ak) == 0) {
$sonuc = mysql_query($sql) or die(mysql_error());
}
elseif (mysql_num_rows($ak) == 1) {
$sonuc = "you already added";
}
this script works succesfully. but mysql_query($sql) echos "1" how can let it echo "successfully added." thanks...
(im asking simple questions because im new to php)