Subversion Repositories Applications.bazar

Rev

Rev 409 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 409 Rev 439
Line 1151... Line 1151...
1151
	if ($requeteSQL!='') {
1151
	if ($requeteSQL!='') {
1152
		if ($req_where==1) {$requete .= ' AND ';}
1152
		if ($req_where==1) {$requete .= ' AND ';}
1153
		$requete .= '('.$requeteSQL.')';
1153
		$requete .= '('.$requeteSQL.')';
1154
		$req_where=1;
1154
		$req_where=1;
1155
	}
1155
	}
1156
	$requete .= ' ORDER BY  bf_date_debut_validite_fiche DESC, bf_date_fin_validite_fiche DESC, bf_date_maj_fiche DESC';
1156
	$requete .= 'GROUP BY bf_id_fiche ORDER BY bf_date_debut_validite_fiche DESC, bf_date_fin_validite_fiche DESC, bf_date_maj_fiche DESC';
1157
	if ($nbitem!='') {$requete .= ' LIMIT 0,'.$nbitem;}
1157
	if ($nbitem!='') {$requete .= ' LIMIT 0,'.$nbitem;}
1158
	$resultat = $GLOBALS['_BAZAR_']['db']->query($requete) ;
1158
	$resultat = $GLOBALS['_BAZAR_']['db']->query($requete) ;
1159
	if (DB::isError($resultat)) {
1159
	if (DB::isError($resultat)) {
1160
		return  $resultat->getMessage().'<br /><br />'.$resultat->getDebugInfo() ;
1160
		return  $resultat->getMessage().'<br /><br />'.$resultat->getDebugInfo() ;
1161
	}
1161
	}