menu search
brightness_auto
more_vert
I am trying to create a table with data values shown through php, but am unable to use td tag in PHP if statement.

<tr>

<td>Octroi: Rs. </td>

<td> <?php

echo (round($r));

?> </td>

</tr>

<tr>

<td>+ VAT: Rs. </td>

<td> <?php

echo ($l);

?> </td>

</tr>

<tr>

<?php

$a = $this->prodDet->v_price;

if($a > 100000)

            {   

               <td>+ TCS: Rs. </td>

               <td>

                $tcs=(round(.01*$a));

                echo '<p>' . "+ TCS: Rs. $tcs" . '</p>';

                </td>

            }   

 ?>
thumb_up_off_alt 0 like thumb_down_off_alt 0 dislike

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
eForumAfrica, where you can ask questions and receive answers from other members of the community. Find the answer to your question, help others by answering their questions.
...