
maviyazilim
Members-
Posts
77 -
Joined
-
Last visited
Everything posted by maviyazilim
-
ginerjm. I did not reject anything. I do not know english. I'm using google translate. I have very little knowledge. I don't understand what you are saying. I will do whatever you want me to write where with details or code samples. I can send you all the files I have if you want. If you say that this much detail and information is not enough.
-
Barand. I can send the files if you want to help. If you let me know your e-mail address, I can send it there.
-
Barand. Thank you for your help
-
Barand The code you gave works without any errors. It sorts when the content_id and title are typed. This is not what I want, I want to count. The homepage does not change. There is also an extra header and text at the bottom.
-
Barand I have added as a header. sorted the contents. I don't want that. I want to paginate. The titles of the article itself plus the entire table are already listed on the homepage. Clicking on 1 and 2 does not change the homepage at all. thats the problem. There are 16 contents. No matter which page you click on, there is always the last 10 content on the homepage.
-
ginerjm. Thank you for your help. bye
-
ginerjm Again, I don't understand what you said. I do not want to see the information in these contents. I want to paginate the contents as 10 pieces. 1 2 1 last 10 content 2 top 6 content The pagination will progress as content is added. I want to do pagination.
-
ginerjm. These are the ones that come up after the code you gave r Array ( [icerik_id] => 14 [baslik] => 15 15 [yazi] => xxxxxxxx [yazar] => Admin )
-
ginerjm. sory. I do not refuse your help. What should I write in the place where x is written in the code you gave? I don't know this code structure. I do not know what to do.
-
Barand. I have 16 records in my database. It gave 16 error codes, all the same, for 16 records. all error codes for the same line. The line with the error code is below. 43 echo $r['icerik_id'] . ' - ' . $r['name'] . '<br>'; Warning: Undefined array key "name" in C:\xampp\htdocs\blog\orta.php on line 43 16 - Warning: Undefined array key "name" in C:\xampp\htdocs\blog\orta.php on line 43 15 - Warning: Undefined array key "name" in C:\xampp\htdocs\blog\orta.php on line 43
-
ginerjm. sory. easy for you, hard for me. I could not understand the code you gave. It did not happen.
-
I didn't fully understand what you mean. i am a beginner.
-
I added double quotes. the result did not change. not working
-
thank you ginerjm. I added the code you provided. no error codes were found.
-
Barand I copied and pasted the code you provided. same as your suggested code
-
jarvis. The code you suggested did not work. while($row = mysqli_fetch_array($result)){ //whatever you need to go here } I don't understand what to write in this field. Parse error: syntax error, unexpected token "<", expecting end of file in C:\xampp\htdocs\blog\orta.php on line 44 line 44 -> <ul>
-
That's all the pagination related code. no other code $results_per_page = 10; $sql='SELECT * FROM icerik'; $result = mysqli_query($conn, $sql); $number_of_results = mysqli_num_rows($result); $number_of_pages = ceil($number_of_results/$results_per_page); if (!isset($_GET['sayfa'])) { $page = 1; } else { $page = $_GET['sayfa']; } $this_page_first_result = ($page-1)*$results_per_page; $sql='SELECT * FROM icerik order by icerik_id desc limit $this_page_first_result, $results_per_page'; $result = mysqli_query($conn, $sql); for ($page=1;$page<=$number_of_pages;$page++) { echo '<a href="index.php?sayfa=' . $page . '">' . $page . '</a> '; }
-
when i click on first page i see last 10 content. When I click on the second page, I see the first 10 content. paging is not happening. It always shows the last 10 content no matter what page it is. No error codes appear either.
-
not working.
-
It doesn't get any errors. Whichever page I click, it only shows the homepage. What is the reason for this error? $results_per_page = 10; $sql='SELECT * FROM icerik'; $result = mysqli_query($conn, $sql); $number_of_results = mysqli_num_rows($result); $number_of_pages = ceil($number_of_results/$results_per_page); if (!isset($_GET['sayfa'])) { $page = 1; } else { $page = $_GET['sayfa']; } $this_page_first_result = ($page-1)*$results_per_page; $sql='SELECT * FROM icerik order by icerik_id desc limit 10'; $result = mysqli_query($conn, $sql); for ($page=1;$page<=$number_of_pages;$page++) { echo '<a href="index.php?sayfa=' . $page . '">' . $page . '</a> '; }
-
I'm having trouble listing the latest data.
maviyazilim replied to maviyazilim's topic in PHP Coding Help
sorry. The page is in Turkish, but there is no translation. same with english. I can not understand my problem. I could not understand what to do. thank you. I guess I can't. best to leave -
I'm having trouble listing the latest data.
maviyazilim replied to maviyazilim's topic in PHP Coding Help
sorry. I read what was written but could not grasp the logic. I can't do it -
I'm having trouble listing the latest data.
maviyazilim replied to maviyazilim's topic in PHP Coding Help
sory. My English is weak. I could not understand anything from the information given. Thanks for your help. -
I'm having trouble listing the latest data.
maviyazilim replied to maviyazilim's topic in PHP Coding Help
I do not know. I did not understand what was missing. sory -
I'm having trouble listing the latest data.
maviyazilim replied to maviyazilim's topic in PHP Coding Help
I read what is written. but I could not understand what was missing. what should I do