জয়েন লগইন

পিএইচপি limit

🌈পিএইচপি limit কি?

📋পিএইচপি limit হলো নির্দিষ্ট সংখ্যক তথ্য নির্বাচন করার পদ্ধতি।

⚒️পিএইচপি limit নির্দিষ্ট সংখ্যক তথ্য নির্বাচন করতে ব্যবহৃত হয়।

পিএইচপি limit নির্দিষ্ট সংখ্যক তথ্য নির্বাচন করার উদাহরণ।

php
<?php

$connect = mysqli_connect("localhost", "root", "", "testing");

$sql  = "SELECT * FROM users LIMIT 5";
$data = mysqli_query($connect, $sql);

echo "<table border='1'>";
echo "<tr>";
echo "<th>Id</th>";
echo "<th>Name</th>";
echo "<th>Land</th>";
echo "</tr>";

while ($cell = mysqli_fetch_assoc($data)) {

  echo "<tr>";
  echo "<td>" . $cell["id"] . "</td>";
  echo "<td>" . $cell["name"] . "</td>";
  echo "<td>" . $cell["land"] . "</td>";
  echo "</tr>";

}

echo "</table>";

?>