Arkadaşlar teşekkür ederim cevaplar için.
Seyranli dediğin doğru ama en kısa nasıl yaparım onu öğrenmek istiyorum.
Lisans dediğini denedim olmadı sonra şunu denedim yine olmadı
if (exists (select kisi from sayac_rapor where webid='toplam_sayac' and tarih='2007-05-07' limit 1 ))
begin
update sayac_rapor set kisi=(kisi+1) where webid='toplam_sayac' and tarih='2007-05-07' limit 1;
end
else
begin
insert into sayac_rapor values(NULL,'toplam_sayac','2007-05-07','1');
end
Hatta iyice basitleştiriyim deneme amaçlı dedim
if ((select count(*) from sayac_rapor where tarih = '2007-06-12') > 0)
Print 'Record exits'
ELSE
Print 'Record doesn''t exist'
Gibi birşey yazdım yine hata yine hata

Php my adminde aldığım hata:
if( (
SELECT count( * )
FROM sayac_rapor
WHERE tarih = '2007-06-12' ) >0
)Print 'Record exits'
ELSE Print 'Record doesn''t exist'
LIMIT 0 , 30 MySQL çıktısı:
#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'if( ( select count( * ) from sayac_rapor where tarih = '2007-06-12' ) > 0 ) Pri' at line 1
Hata nerde çözemedim. O kadar araştırdım yok