miniass - PHP Online

Form of PHP Sandbox

Enter Your PHP code here for testing/debugging in the Online PHP Sandbox. As in the usual PHP files, you can also add HTML, but do not forget to add the tag <?php in the places where the PHP script should be executed.



Your result can be seen below.

Result of php executing





Full code of miniass.php

  1. <style>
  2. body {
  3.   background-color: black;
  4.   text-align: center;
  5.   color: white;
  6. }
  7. table, th, td {
  8. border: 1px solid white;
  9. border-collapse: collapse;
  10. }
  11. </style>
  12.  
  13. <?php
  14. $Arai_Helmet_1 = array('Name' => 'Quantum-X', 'Description' => 'Description', 'Color' => 'Color', 'Price' => 'Price');
  15. $Arai_Helmet_2 = array('Name' => 'Name', 'Description' => 'Description', 'Color' => 'Color', 'Price' => 'Price');
  16. $Arai_Helmet_3 = array('Name' => 'Name', 'Description' => 'Description', 'Color' => 'Color', 'Price' => 'Price');
  17.  
  18. echo '<table align="center">';
  19. echo '<tr>';
  20. echo '<th colspan="5">Inventory</th>';
  21. echo '</tr>';
  22. echo '<tr>';
  23. echo '<th>Image </th>';
  24. echo '<th>Item</th>';
  25. echo '<th>Description</th><th>Color</th><th>Price</th></tr>';
  26. for($x = 0; $x < $Arai_Helmet_1; $x++)
  27. {echo '<tr><td> Photo goes here </td></tr>';
  28. echo '<td>$Arai_Helmet_1[$Name]</td>';
  29. echo '<td>$Arai_Helmet_1[$Description]</td>';
  30. echo '<td>$Arai_Helmet_1[$Color]</td>';
  31. echo '<td>$Arai_Helmet_1[$Price]</td>';
  32. echo '</tr>';
  33. }
  34. echo '</table';
  35.  
  36.     ?>
  37.     
File Description
  • miniass
  • PHP Code
  • 20 Feb-2019
  • 1 Kb
You can Share it: