Tema: Re: url gamyba su mysql
Autorius: Donatas
Data: 2009-09-14 13:28:09
na tai pries rasydamas i DB apdorok tas reiksmes ir i atskira stulpeli.
Gal pravers viena funkcija, kuria kazkada naudojau:


public function getPermalink($eilute) {
  $lt_sim = 
array("Ą","Č","Ę","Ė","Į","Š","Ų","Ū","Ž","ą","č","ę","ė","į","š","ų","ū","ž","-"," 
");
  $en_sim = 
array("A","C","E","E","I","S","U","U","Z","a","c","e","e","i","s","u","u","z","_","_");

  $eilute_en = str_replace($lt_sim, $en_sim, trim($eilute));
  $permalink = preg_replace("/[^a-zA-Z0-9_]/", "", strtolower($eilute_en));

  return $permalink;
 }


"tobias" <oracullusTRINAM@yahoo.com> wrote in message 
news:h8l161$nka$1@trimpas.omnitel.net...
> kas zinotu mysql query sintakse pagaminti url title is duoto stringo?
>
>
> "Abc'd EfgH ij & KL!" > "abcd_efgh_ij_kl"
>
>
> aciu
>