php - i want to pagination in my class use diffent function -



php - i want to pagination in my class use diffent function -

(note: first language not english)

i want pagination new function in class.

what can do?

i using function list books.

public function katkitapcek($columns,$category,$limit,$sayfa) { $columns = mysql_real_escape_string($columns); $category = mysql_real_escape_string($category); $limit = mysql_real_escape_string($limit); $page = mysql_real_escape_string($page); $limit0 = $limit * $sayfa; $limit1 = ($sayfa-1) * $limit; $sql = "select " . $colums . " kitaplar k_kat = '$category' limit " . $limit1 . "," . $limit0 . " order k_id asc "; $query = mysql_query($sql,parent::baglandb()); if ($query) { homecoming true; } else { homecoming false; }

php oop class pagination

Comments

Popular posts from this blog

java - How to pass parameters between Request-Scoped Controllers? -

actionscript 3 - Flex: moving a point with rotation doesnt change the point XY? -

string - what is the difference between "some" == "some\0" and strcmp("some","some\0") in c++? -