Location: PHPKode > projects > php movie db > old/film_config.php
<?php

	define("FISICAL_PATH","/web/htdocs/www.simdyd.net/home/images_");
	define("LOGICAL_PATH","http://www.simdyd.net/images_");
	define("THUMB_HEIGHT",100);
	define("THUMB_NAME","_tmb");
	define("IMG_X_PAGE",5);
	
	function converti_id_cat($cat)
	{
		global $prefix, $dbi;
		$testo="select * from ".$prefix."_film_categorie where id=$cat";
		$res=sql_query($testo,$dbi);
		$errno=mysql_errno();
		if ($errno==0)
		{
		$num=mysql_num_rows($res);
		if ($num==1)
		{
			$nome_cat=mysql_result($res,0,nome);
			return($nome_cat);
		}
		else
		{
			return(-1);
		}
		}
		else
		{
			$error=mysql_error();
			echo "<p>$error</p>";
		}
	}
?>
Return current item: php movie db