$str1 = "SELECT * FROM(SELECT row_number() OVER (ORDER BY journal_ID DESC) AS rownum, * FROM journal) AS A WHERE A.rownum BETWEEN ($start_page) AND ($end_page)";
$sql_search = "SELECT * FROM(SELECT row_number() OVER (ORDER BY journal_ID DESC) AS rownum, * FROM journal) AS A WHERE A.rownum BETWEEN ($start_page) AND ($end_page) AND text_search LIKE '%".$text_search."%'";