Please give the teacher some guidance!
梅川内库
梅川内库 2017-09-08 00:20:18
0
1
1457

<?php

function BG($B,$G = Green){

$i = 1;

while ( $i < 10) {

echo '<table width="800" border = "1" >';

if ($i%1 == 0) {

echo "<tr bgcolor = '$G' />";

if ($i%2 == 0) {

echo "<tr bgcolor = '$B' />";

}

}

echo '<td>' .$i. '</td>';

$i++;

echo '</table>';

}

return;

}

BG(Blue);

?>

梅川内库
梅川内库

reply all(1)
phpcn_u2434

You have to say it clearly if you want to give me advice. I think your code is probably reporting an error, because your Green and Blue do not have quotation marks. If you add quotation marks, the error will not be reported

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template