Q:

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

belongs to collection: PHP basic programs with examples

0

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

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

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..

<?php
$a=1000;
$b=1400;
$c=1900;
$d=1800;
 
echo "<table border=1 cellspacing=0 cellpading=0>
<tr> <td>Salary of Mr. David</td> <td>$a$</font></td></tr> 
<tr> <td>Salary of Mr. John</td> <td>$b$</font></td></tr>
<tr> <td>Salary of Mr. Michael</td> <td>$c$</font></td></tr>
<tr> <td>Salary of Mr. Matthew</td> <td>$d$</font></td></tr>
</table>";
?>

Result:

Salary of Mr. David 1000$
Salary of Mr. John 1400$
Salary of Mr. Michael 1900$
Salary of Mr. Matthew 1800$

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Write a PHP function to test whether a number is g... >>
<< Write a simple PHP program to check that email id ...