Merhaba arkadaşlar, internet sitemin SEO URL'lerinin sonuna sayfaya ilişkin ID koymak istiyorum. Mysql'de ID olarak belirtilmiş alandaki veriyi PHP üzerinden nasıl çağırabilirim ?
SeoFix kodu aşşağıda bu kodun en son satırına çağırmayı düşünüyorum.
İlginize teşekkürler.
function seoFix($str)
{
if (function_exists(mySeoFix)) return mySeoFix();
$chars = array('!','?','.',':',';','_');
$str = str_replace($chars,'',$str);
$str = strtolower(trim(tr2eu($str)));
$str = preg_replace('/[^a-z0-9-]/', '-', $str);
$str = preg_replace('/-+/', "-", $str);
$str = strtolower($str);
$str = str_replace('-39-','',$str);
$str = str_replace('-8217-','',$str);
$str.= '-';
$str.= '';
return $str;
SeoFix kodu aşşağıda bu kodun en son satırına çağırmayı düşünüyorum.
İlginize teşekkürler.
function seoFix($str)
{
if (function_exists(mySeoFix)) return mySeoFix();
$chars = array('!','?','.',':',';','_');
$str = str_replace($chars,'',$str);
$str = strtolower(trim(tr2eu($str)));
$str = preg_replace('/[^a-z0-9-]/', '-', $str);
$str = preg_replace('/-+/', "-", $str);
$str = strtolower($str);
$str = str_replace('-39-','',$str);
$str = str_replace('-8217-','',$str);
$str.= '-';
$str.= '';
return $str;