web 2.0

How to use PHP & HTML and Table

How to use PHP & HTML and Table This tutorial how to using PHP & Add HTML Tag to PHP command.

ShotDev Focus:
- PHP & Add HTML Tag to PHP

Example 1


<?php
echo "Hello ShotDev.Com";    // PHP
?>
<b>Hello ShotDev</b>    <!-- HTML -->
<table width="100%"  border="0">
<tr>
<td><?=$strSiteName;?></td>
<td>ShotDev.Com</td>
<td>ShotDev.Com</td>
</tr>
<tr>
<td><?=$strSiteName;?></td>
<td>ShotDev.Com</td>
<td>ShotDev.Com</td>
</tr>
<tr>
<td><?=$strSiteName;?></td>
<td>ShotDev.Com</td>
<td>ShotDev.Com</td>
</tr>
</table>

Example 2


<?php
echo "Hello ShotDev.Com";    // PHP
echo "<b>Hello ShotDev</b>"; // PHP & HTML
?>

<?php
$strSiteName = "ShotDev.Com";
echo '
<table width="100%"  border="0">
<tr>
<td>'.$strSiteName.'</td>
<td>ShotDev.Com</td>
<td>ShotDev.Com</td>
</tr>
<tr>
<td>'.$strSiteName.'</td>
<td>ShotDev.Com</td>
<td>ShotDev.Com</td>
</tr>
<tr>
<td>'.$strSiteName.'</td>
<td>ShotDev.Com</td>
<td>ShotDev.Com</td>
</tr>
</table>';
?>
1 Star2 Stars3 Stars4 Stars5 Stars6 Stars7 Stars8 Stars9 Stars10 Stars (1 votes, average: 1.00 out of 10)
Loading ... Loading ...

Leave a Reply

You must be logged in to post a comment.