Advertisement
Guest User

Untitled

a guest
Jun 26th, 2019
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.50 KB | None | 0 0
  1. $kol = 9; //количество записей для вывода
  2. $art = ($page * $kol) - $kol; // определяем, с какой записи нам выводить
  3. $Series_find=strpos($allPost,'TAGS_FOR_FIND');
  4. $result = mysqli_query($link,"SELECT * FROM `manga` WHERE `Series` LIKE '".$Series."' AND `src` != '' ORDER BY id DESC LIMIT $art,$kol");
  5. $res=mysqli_query($link,"SELECT * FROM manga WHERE `Series` LIKE '".$Series."' AND `src` != ''");
  6. $q = mysqli_query($link,$sql_qestion);
  7. $total= mysqli_num_rows($res);
  8. $str_pag = ceil($total / $kol);
  9. //while($manga = mysqli_fetch_array($result))
  10. $manga=mysqli_fetch_array($result);
  11.  
  12.  
  13. //for ($i=0; $i < mysqli_num_rows($q); $i++)
  14. do{
  15.  
  16. //$manga=mysqli_fetch_array($q);
  17. $href="article.php?id=".$manga[id];
  18. ?>
  19. <div class="work">
  20.  
  21. <a href="<?php echo $href ?>">
  22. <?php echo "<img src= '";
  23. if ($manga[src]!=""){
  24. echo $manga[unical_id];
  25. }
  26. else {
  27. echo "img/no_img.webp";
  28. };
  29. echo " ' class='media' alt='' ".'/>';
  30. ?>
  31. <div class="content_row" >
  32. <h4><?php echo $manga[title] ?></h4>
  33. </div>
  34. </a>
  35. </div>
  36. <?php
  37.  
  38. }while ($manga = mysqli_fetch_array($result));
  39.  
  40. object(mysqli_result)#2 (5) { ["current_field"]=> int(0) ["field_count"]=> int(9) ["lengths"]=> NULL ["num_rows"]=> int(0) ["type"]=> int(0) }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement