Guest User

Untitled

a guest
Aug 14th, 2018
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.31 KB | None | 0 0
  1. PHP how to check it its the final row in a record?
  2. mysql_select_db($database_webiceberg, $webiceberg);
  3. $query_services = "SELECT
  4. services.id_services,
  5. services.title,
  6. services.body,
  7. services.link,
  8. services.cattegory,
  9. services.service_cattegory,
  10. services.page_title,
  11. services.lang
  12. from services
  13. where lang=2 and
  14. cattegory='$webdesign'" ;
  15. $services = mysql_query($query_services, $webiceberg) or die(mysql_error());
  16. $row_services = mysql_fetch_assoc($services);
  17. $totalRows_services = mysql_num_rows($services);
  18.  
  19. <?php do { ?>
  20. <!-- Content: Blog Page -->
  21. <a name="blog_page" id="blog_page"></a>
  22. <div class="ribbon">
  23. <div class="wrapAround"></div>
  24. <div class="tab">
  25. <span name="<?php echo $row_services['title']; ?>">
  26. <?php echo $row_services['title']; ?><a href='#Wrapper'>Top</a></span>
  27. </div>
  28. </div>
  29. <?php
  30.  
  31. echo $row_services['body']; ?>
  32. <p><br />
  33.  
  34.  
  35. <a name="multi_column_page"></a>
  36. </p>
  37. <?php } while ($row_services = mysql_fetch_assoc($services)); ?>
  38.  
  39. $row_services=$next_row;
  40. $next_row=mysql_fetch_assoc($services);
  41.  
  42. <?php } while ($next_row); ?>
Add Comment
Please, Sign In to add comment