Subversion-Projekte lars-tiefland.ci

Revision

Revision 1439 | Revision 1441 | Zur aktuellen Revision | Ganze Datei anzeigen | Leerzeichen ignorieren | Details | Blame | Letzte Änderung | Log anzeigen | RSS feed

Revision 1439 Revision 1440
Zeile 3... Zeile 3...
3
/**
3
/**
4
 *
4
 *
5
 * @package WebanOS CI
5
 * @package WebanOS CI
6
 * @author Lars Tiefland <ltiefland@gmail.com> 
6
 * @author Lars Tiefland <ltiefland@gmail.com> 
7
 * @copyright 2016
7
 * @copyright 2016
8
 * @version $Rev: 1439 $
8
 * @version $Rev: 1440 $
9
 */
9
 */
Zeile 10... Zeile 10...
10
 
10
 
11
class Order_model extends CI_Model
11
class Order_model extends CI_Model
12
{
12
{
Zeile 589... Zeile 589...
589
			ORDER BY
589
			ORDER BY
590
				b.id DESC
590
				b.id DESC
591
			".$limit."
591
			".$limit."
592
		";
592
		";
593
		$res = $GLOBALS['order_db']->query($sql);
593
		$res = $GLOBALS['order_db']->query($sql);
594
		echo $sql;
594
		//echo $sql;
595
		$sql_anz = "SELECT
595
		$sql_anz = "SELECT
596
				FOUND_ROWS() AS total
596
				FOUND_ROWS() AS total
597
		";
597
		";
598
		$res_anz = $GLOBALS["order_db"]->query($sql_anz);
598
		$res_anz = $GLOBALS["order_db"]->query($sql_anz);
599
		$row = $res_anz->row_array();
599
		$row = $res_anz->row_array();