title: Displaying a number from the database in a javascript alert box
body: <p>The following code  is to used to display an alert box with the order number when a html form is submitted successfully! </p>
  
  <pre><code>$mysql="SELECT MAX(OrderNo.) FROM `order`  ";
   $results=mysqli_query($db,$mysql);
  
       $row=mysqli_fetch_array($results);
  
         echo '&lt;script type="text/javascript"&gt;';
  
  
  
     echo 'alert("Successful signup your order number is"';
         echo $row['OrderNo.'];
      echo ")";
      echo '&lt;/script&gt;';
  </code></pre>
  
  <p>Though the alert box appears with "Successful signup your order number is" part, the OrderNo. part(retrieved from a databse table) does not appear in the alert box! Here max is used because the latest orderNo. is to be displayed and the OrderNo. field is auto incremented.
  please help me to correct this error</p>