Merhaba arkadaşlar,

Gelen verilerde $seolink bazen boş oluyor, dolayısıyla ilgili sayfa

http://www.site.com/abc/video/.html olarak görünüyor ve 403 hata kodu döndürüyor.

Olması gereken
http://www.site.com/abc/video/sef-link.html


Sorum ise şu;

Eğer .$seolink. değeri veya diğer verilerden herhangi biri boşsa, bunu mysql'e yazmasın. Bunu nasıl yapabilirim?


	
$seourls = "http://".$asiteadresi."/".$vid."/video/".$seolink.".html";
$kontrol=mysql_num_rows(mysql_query("Select * from video where vid='$vid'"));
if ($kontrol<=0){
$hit='2';
mysql_query("Insert Into video (vid,hit,seourl,title) values ('".$vid."','".$hit."','".$seourls."','".mysql_real_escape_string($title)."')");
} else {
mysql_query("Update video set hit=hit+1 where vid='$vid'");