1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
   |  
 $p_titrecherch=$_POST['titrecherch'];
 $p_themecher= nom2code($_POST['themecher'],"theme","theme","code_them");
 $p_typecher=nom2code($_POST['typecher'],"type_ouvrage","type","code_type");
 $p_auteurcher=$_POST['auteurcher'];
 $p_maisoncherch=$_POST['maisoncherch'];
 $p_datecherch=$_POST['datecherch'];
 $p_sub=$_POST['y'];
 
if ( $p_sub=="submit")
	{  $sql8="SELECT `CODE_O`, o.CODE_THEM, o.CODE_AUT, a.nom_aut, o.CODE_TYPE, `TITRE`, `MAISON_EDITION`, `DATE_APPARTION`, `NBRE_COPIEDISPO`, `NBRE_COPIETOTAL`, `URL_IMG`
			FROM  ouvrage o, auteur a
			Where  o.CODE_AUT=a.CODE_AUT";
 
 
 
 
	 $req8 = mysql_query($sql8) or die('Erreur SQL !<br>'.$sql8.'<br>'.mysql_error()); 
	 $total   =@mysql_num_rows($req8);
	 $query_affiche=$sql8." LIMIT $reste_a_affiche,$nbr_page_a_affiche";
	 $res=mysql_query($query_affiche,$db);
 
	while( $data8=mysql_fetch_assoc($res)) 
	{
          $row1[]=$data8;	
        }
 
 
 
 
		  	 $smarty->assign('livre',$row1);
			 $smarty->assign('total',$total);  
                        $smarty->assign('nbr_page_a_affiche',$nbr_page_a_affiche);
		        $smarty->assign('total_affiche',count($row1));
} | 
Partager