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>'; ?>