Ok, let me explain situation first...
I’m trying to make snippet that generate playlist for longtail video player directly from database, now everything is working fine until I’m trying to genarate <title> tag.
here’s code i’m using, it is under development and this is just version to check if generated code is fine
<?php
$output = '';
$result = $modx->db->query( 'SELECT id, user, naslov, video, opis, img FROM `test` ORDER BY naslov ASC' );
while( $row = $modx->db->getRow( $result ) ) {
$output .= "<track>\n" .
" <creator>XicaTV</creator>\n" .
" <title>" . $row['naslov'] . "<title>\n" .
" <location>" . $row['video'] . "</location>\n".
" <info>" . $row['opis'] . "</info>\n".
" <image>" . $row['img'] . "</image>\n".
" </track>\n";
}
echo "<?xml version='1.0' encoding='UTF-8'?>\n";
echo "<playlist version='1' xmlns='http://xspf.org/ns/0/'>\n";
echo "<trackList>\n";
echo $output;
echo "</trackList>\n";
echo "</playlist>\n";
?>
I’m sure there’s something about <title> tag that I can’t figure out. Everything else is generated just fine, and even if i use some other name for this tag it works just fine, but when i name it <title> it just skip that line of code... When i check source of generated page there’s one missing line of code that starts with <title> tag
I’m 99% sure it’s something stupid about it but I can’t figure it out atm.
EDIT* for now I’m running it on local machine for now, but i can upload it on web if this can help