title: How to show alert message with define range in php from mysql
body: <p>In mysql there are 1 to 10 numbers available in table colum, i am fetching number and want to show alert message when number range 1 to 10 or more there are show alert &quot;numbers are enaught&quot;. You can alert message show through javascript but embedded with php.</p>
  <pre><code>&lt;?php
      $sql_query = &quot;SELECT * FROM dndorder ORDER BY display_order&quot;;
      $resultset = mysqli_query($conn, $sql_query) or die(&quot;database error:&quot;. mysqli_error($conn));
      $data_records = array();
      while( $row = mysqli_fetch_assoc($resultset)) {
          echo $row['id'];
          if($row==10){
              foreach (range($row, 10) as $number) {
                  echo 'exceed num';
              }
          }
      }
  </code></pre>