Learning & Integrating web technology and code help directory

How to use PHP & HTML and Table

No comments
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
  1. <?php  
  2. echo "Hello ShotDev.Com";    // PHP  
  3. ?>  
  4. <b>Hello ShotDev</b>    <!-- HTML -->  
  5. <table width="100%"  border="0">  
  6. <tr>  
  7. <td><?=$strSiteName;?></td>  
  8. <td>ShotDev.Com</td>  
  9. <td>ShotDev.Com</td>  
  10. </tr>  
  11. <tr>  
  12. <td><?=$strSiteName;?></td>  
  13. <td>ShotDev.Com</td>  
  14. <td>ShotDev.Com</td>  
  15. </tr>  
  16. <tr>  
  17. <td><?=$strSiteName;?></td>  
  18. <td>ShotDev.Com</td>  
  19. <td>ShotDev.Com</td>  
  20. </tr>  
  21. </table>  
Example 2

  1. <?php  
  2. echo "Hello ShotDev.Com";    // PHP  
  3. echo "<b>Hello ShotDev</b>"// PHP & HTML  
  4. ?>  
  5.   
  6. <?php  
  7. $strSiteName = "ShotDev.Com";  
  8. echo '  
  9. <table width="100%"  border="0">  
  10. <tr>  
  11. <td>'.$strSiteName.'</td>  
  12. <td>ShotDev.Com</td>  
  13. <td>ShotDev.Com</td>  
  14. </tr>  
  15. <tr>  
  16. <td>'.$strSiteName.'</td>  
  17. <td>ShotDev.Com</td>  
  18. <td>ShotDev.Com</td>  
  19. </tr>  
  20. <tr>  
  21. <td>'.$strSiteName.'</td>  
  22. <td>ShotDev.Com</td>  
  23. <td>ShotDev.Com</td>  
  24. </tr>  
  25. </table>';  
  26. ?> 

No comments :

Post a Comment