Write a PHP script to display string, values within a table


Introduction

PHP is a server scripting language, and It is a powerful tool for making interactive and dynamic Web-pages. I have used WampServer 2.2 for following excercise..


techstudy.org

HP 15 Core i3 7th gen Laptop(4GB, 1TB HDD, Windows 10) | Rs. 31,490

  1. <?php
  2. $a=1000;
  3. $b=1400;
  4. $c=1900;
  5. $d=1800;
  6.  
  7. echo "<table border=1 cellspacing=0 cellpading=0>
  8. <tr> <td>Salary of Mr. David</td> <td>$a$</font></td></tr>
  9. <tr> <td>Salary of Mr. John</td> <td>$b$</font></td></tr>
  10. <tr> <td>Salary of Mr. Michael</td> <td>$c$</font></td></tr>
  11. <tr> <td>Salary of Mr. Matthew</td> <td>$d$</font></td></tr>
  12. </table>";
  13. ?>

Result

python language techstudy.org

     





Related Topics




Popular Posts