Virajsinh

PhP_05_02

Feb 5th, 2018
195
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.27 KB | None | 0 0
  1. <?php
  2. $num = $_POST['num'];
  3. if($num)
  4. {
  5.     for ($i=1; $i<=10; $i++)
  6.     {
  7.         error_reporting(0);
  8.         //error_reporting(0); use for hide run time error
  9.         $mul = $num * $i;
  10.         echo "$num x $i = $mul<br>";
  11.     }
  12. }
  13. else
  14. {
  15.     echo "Invalid Entry!";
  16. }
  17. ?>
Add Comment
Please, Sign In to add comment