include "../header_top.php";
include "header_general.php";
include "../header_content.php";
$mycontext_order='data_extern DESC';
$mycontext_limit=1;
?>
Filme artistice
include '../config.php';
$link = mysql_connect( $citatepedia_serv, $citatepedia_user, $citatepedia_pass );
if ( ! $link )
die( "Couldn't connect to MySQL" );
else
{
mysql_select_db( $citatepedia_data,$link ) or die ( "Couldn't open database: ".mysql_error() );
mysql_query( "SET NAMES utf8" ) or die ( "Couldn't select: ".mysql_error() );
$result = mysql_query( 'SELECT title FROM imagozone2.g3items WHERE parent_id=5 ORDER BY title', $link ) or die ( "Couldn't select: ".mysql_error() );
mysql_query( "SET NAMES latin1" ) or die ( "Couldn't select: ".mysql_error() );
while ( $row = mysql_fetch_array( $result ) )
{
$titlu=iconv('utf-8','windows-1250',html_entity_decode($row['title']));
$pos=strpos($titlu,'("');
if ($pos===false)
{
$titlu_simplu=substr($titlu,1,-1);
}
else
{
$titlu_simplu=substr($titlu,$pos+2,-2);
}
$titlu_simplu=folder_from_text($titlu_simplu);
echo '- '.$titlu.'
';
$mycontext_limit+=1;
}
$mycontext_limit=1+round($mycontext_limit/20);
}
echo '
';
include "../sidebar.php";
mysql_close( $link );
include "../footer_general.php";
?>