//Prisijungiam prie DB
$result = mysql_query("SELECT * FROM lenta");
$row = mysql_fetch_array($result)
$irasas = "".$row['kintamasis']."";
function gaunam($URL) {
$simboliu = 11;
$rezas = strpos($URL, "?v=");
if($rezas === FALSE)
$rezas = strpos($URL, "&v=");
$rezas +=3;
$ID = substr($URL, $rezas, $simboliu);
return $ID;
}
echo gaunam("$irasas");