Question: PHP include() CODING Hello! Thanks so much in advance for any assistance. I'll get right to my question: Create 3 files (i.e. header.php, main.php, footer.php)

PHP include() CODING

Hello! Thanks so much in advance for any assistance. I'll get right to my question:

"Create 3 files (i.e. header.php, main.php, footer.php) and use the PHP built-in function include() to implement an HTML page with the structure showed below. Notice that the main portion of the page includes the multiplication table that you implemented for the homework assignment 3.

PHP include() CODING Hello! Thanks so much in advance for any assistance."

The multiplication table being discussed was an earlier assignment. Mine looks like this:

I'll get right to my question: "Create 3 files (i.e. header.php, main.php,

And the code I used for it is:

// Example 3

$a = 1; $b = 2; $c = 3; $d = 4; $e = 5; $f = 6; $g = 7; $h = 8; $i = 9; $j = 10;

echo "$a $b $c $d $e $f $g $h $i $j ";

echo $b," ",$b*$b," ",$c*$b," ",$d*$b," ",$e*$b," ",$f*$b," ",$g*$b," ",$h*$b," ",$i*$b," ",$j*$b," ";

echo $c," ",$b*$c," ",$c*$c," ",$d*$c," ",$e*$c," ",$f*$c," ",$g*$c," ",$h*$c," ",$i*$c," ",$j*$c," ";

echo $d," ",$b*$d," ",$c*$d," ",$d*$d," ",$e*$d," ",$f*$d," ",$g*$d," ",$h*$d," ",$i*$d," ",$j*$d," ";

echo $e," ",$b*$e," ",$c*$e," ",$d*$e," ",$e*$e," ",$f*$e," ",$g*$e," ",$h*$e," ",$i*$e," ",$j*$e," ";

echo $f," ",$b*$f," ",$c*$f," ",$d*$f," ",$e*$f," ",$f*$f," ",$g*$f," ",$h*$f," ",$i*$f," ",$j*$f," ";

echo $g," ",$b*$g," ",$c*$g," ",$d*$g," ",$e*$g," ",$f*$g," ",$g*$g," ",$h*$g," ",$i*$g," ",$j*$g," ";

echo $h," ",$b*$h," ",$c*$h," ",$d*$h," ",$e*$h," ",$f*$h," ",$g*$h," ",$h*$h," ",$i*$h," ",$j*$h," ";

echo $i," ",$b*$i," ",$c*$i," ",$d*$i," ",$e*$i," ",$f*$i," ",$g*$i," ",$h*$i," ",$i*$i," ",$j*$i," ";

echo $j," ",$b*$j," ",$c*$j," ",$d*$j," ",$e*$j," ",$f*$j," ",$g*$j," ",$h*$j," ",$i*$j," ",$j*$j," ";

?>

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!