473,398 Members | 2,188 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 software developers and data experts.

Using php without database inserting table

Hi,
I am doing a project for college. We have been asked to build a php page and insert a table to it WITHOUT using a database. I have it done but it keeps returning errors.

When i go to my home html page and go to drop down menu I created and choose page I want to see it should bring me to only the section I choose in the php.

Here is the code (any help really appreciated):

Expand|Select|Wrap|Line Numbers
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
  5. <title>Album</title>
  6. <link rel="stylesheet" type="text/css" href="homework.css">
  7. </head>
  8. <body> 
  9.     <?php 
  10.       // get form selection 
  11.       $day = $_GET['album']; 
  12.       // check value and select appropriate item 
  13.       if ($choice == 1) { 
  14.         $album = 'James Taylor';
  15.         ?>
  16.         <table>
  17.         <tr>
  18.         <td>
  19.         <a href = index1.html>Back</a><br>
  20.         <h1>Carolina On My Mind</h1>
  21.         <h2>'Carolina On My Mind'</h2>
  22.         <img src="images/taylor.jpg" alt="James Taylor" width="100" height="100"/>
  23.         <p><span class="style1">Track Titles:<br />
  24.         <h3>
  25.         <ol>echo('1. Dont Talk Now</br>
  26.         2. Somethings Wrong</br>
  27.         3. Knockin Round The Zoo</br>
  28.         4. Sunshine Sunshine</br>
  29.         5. Taking It In</br>
  30.         6. Something In The Way She Moves</br>
  31.         7. Carolina in My Mind</br>
  32.         8. Brighten Your Night With My Dayecho');</ol> 
  33.         </h3>
  34.         </span>
  35.         <br /><iframe title="YouTube video player" width="480" height="290" src="http://www.youtube.com/embed/Gic6B-B6rpg" frameborder="0" allowfullscreen></iframe>
  36.         </p>
  37.         </td>
  38.       </tr>
  39.     </table>
  40.     <?php 
  41.     </body>
  42.     </html>
  43.       } 
  44.       elseif ($choice == 2) { 
  45.         $album = 'The Rolling Stones'; 
  46.         ?>
  47.         <table>
  48.           <tr>
  49.         <td>
  50.         <a href = index1.html>Back</a><br>
  51.         <h1>The Rolling Stones </h1>
  52.         <h2>'Symphany For The devil'</h2>
  53.         <img src="images/stones.jpg" alt="beggars banquet - rolling stones" width="100" height="100"/>
  54.         <p><span class="style1">Track Titles:<br />
  55.         <h3>
  56.         <ol>echo('1. Sympathy for the Devil</br>
  57.         2. No Expectations</br>
  58.         4. Parachute Woman</br>
  59.         5. Jigsaw Puzzle</br>
  60.         6. Street Fighting Man</br>
  61.         7. Prodigal Son</br>
  62.         8. Stray Cat Blues</br>
  63.         9. Factory Girl</br>
  64.         10. Salt of the Earth');</ol>
  65.         </h3>
  66.           </span>
  67.         <br />
  68.          <iframe title="YouTube video player" width="480" height="290" src="http://www.youtube.com/embed/iLddJ1WceHQ" frameborder="0" allowfullscreen></iframe>
  69.         </p>
  70.         </td>
  71.       </tr>
  72.     </table>
  73.     <?php 
  74.     </body>
  75.     </html>
  76.       } 
  77.       elseif ($choice == 3) { 
  78.         $album = 'Sting'; 
  79.         ?>
  80.         <table>
  81.           <tr>
  82.         <td>
  83.         <a href = index1.html>Back</a><br>
  84.         <h1>The Rolling Stones </h1>
  85.         <h2>'All This Time'</h2>
  86.         <img src="images/allthistime.jpg" alt="All This Time - Sting" width="100" height="100"/>
  87.         <p><span class="style1">Track Titles:<br />
  88.         <h3>
  89.         <ol>echo('1. A Thousand Years</br>
  90.         2. If You Love Somebody Set Them Free</br>
  91.         3. Perfect Love...Gone Wrong</br>
  92.         4. All This Time</br>
  93.         5. Seven Days</br>
  94.         6. The Hounds of Winter</br>
  95.         7. Dont Stand So Close to Me</br>
  96.         8. When We Dance</br>
  97.         9. Dienda</br>
  98.         10. Roxanne</br>
  99.         11. Every Breath You Take');</ol>
  100.         </h3>
  101.           </span><br />
  102.          </span><br />
  103.      <iframe title="YouTube video player" width="480" height="290" src="http://www.youtube.com/embed/MsLzdYR_MaQ" frameborder="0" allowfullscreen></iframe>
  104.         </p>
  105.         </td>
  106.       </tr>
  107.     </table>
  108.     <?php 
  109.     </body>
  110.     </html>
  111.       } 
  112.       elseif ($choice == 4) { 
  113.         $album = 'Bob Dylan';
  114.         ?>
  115.         <table>
  116.           <tr>
  117.         <td>
  118.         <a href = index1.html>Back</a><br>
  119.         <h1>'Bob Dylan'</h1>
  120.         <h2>'Hurricane'</h2>
  121.         <img src="images/dylan.jpg" alt="Bob Dylan Desire" width="100" height="100"/>
  122.         <p><span class="style1">Track Titles:<br />
  123.         <h3>
  124.         <ol>echo('1. Hurricane</br>
  125.         2. Isis</br>
  126.         3. Mozambique</br>
  127.         4. One More Cup of Coffee (Valley Below)</br>
  128.         5. Oh, Sister</br>
  129.         6. Joey</br>
  130.         7. Romance in Durango</br>
  131.         8. Black Diamond Bay</br>
  132.         9. Sara');</ol>
  133.           </h3>
  134.          </span><br />
  135.      <iframe title="YouTube video player" width="480" height="290" src="http://www.youtube.com/embed/OLDSdnHWaSU" frameborder="0" allowfullscreen></iframe>
  136.         </p>
  137.         </td>
  138.       </tr>
  139.     </table>
  140.     <?php 
  141.     </body>
  142.     </html>
  143.       } 
  144.       elseif ($choice == 5) { 
  145.         $album = 'Robert Plant and Jimmy Page'; 
  146.         ?>
  147.         <table>
  148.           <tr>
  149.         <td>
  150.         <a href = index1.html>Back</a><br>
  151.         <h1>Jimmy Page & Robert Plant </h1>
  152.         <h2>'Houses Of Holy'</h2>
  153.         <img src="images/housesofholy.jpg" alt="House of holy" width="100" height="100"/>
  154.         <p><span class="style1">Track Titles:<br />
  155.         <h3>
  156.         <ol>echo('1 - The Song Remains The Same</br>
  157.         2 - The Rain Song</br>
  158.         3 - Over The Hills And Far Away</br>
  159.         4 - The Crunge</br>
  160.         5 - Dancing Days</br>
  161.         6 - D yer Mak er</br>
  162.         7 - No Quarter</br>
  163.         8 - The Ocean');</ol>
  164.         </h3>
  165.         <br /><iframe title="YouTube video player" width="480" height="290" src="http://www.youtube.com/embed/D3vs9y6CMrM" frameborder="0" allowfullscreen></iframe>
  166.         </p>
  167.         </td>
  168.       </tr>
  169.     </table>
  170.     <?php 
  171.     </body>
  172.     </html>
  173.       } 
  174.       else { 
  175.         $album = 'Eric Clapton';
  176.         ?>
  177.         <table>
  178.           <tr>
  179.         <td>
  180.         <a href = index1.html>Back</a><br>
  181.         <h1>Eric Clapton,Jeff Beck,Jimmy Page</h1>
  182.         <h2>"Layla"</h2>
  183.         <img src="images/clapton.jpg" alt="Eric Clapton" width="100" height="100"/>
  184.         <p><span class="style1">Track Titles:<br />
  185.            <h3>
  186.         <ol>echo('1. Signe</br>
  187.            2. Before You Accuse Me</br>
  188.            3. Hey Hey</br>
  189.            4. Tears in Heaven</br>
  190.            5. Lonely Stranger</br>
  191.           6. Nobody Knows You When Youre Down and Out</br>
  192.           7. Layla</br>
  193.           8. Running on Faith</br>
  194.           9. Walkin Blues</br>
  195.           10. Alberta</br>
  196.           11. San Francisco Bay Blues</br>
  197.           12. Malted Milk</br>
  198.           13. Old Love</br>
  199.           14. Rollin and Tumblin');</ol>
  200.         </h3>
  201. <br />
  202. <iframe title="YouTube video player" width="480" height="290" src="http://www.youtube.com/embed/ICpxgxThG7s" frameborder="0" allowfullscreen></iframe>
  203.         </span>
  204.         <br />
  205.         </p>
  206.         </td>
  207.           </tr>
  208.         </table> 
  209.       } 
  210.     ?>
  211.     <?php echo($track); ?> 
  212.   </body> 
  213. </html> 
  214.  
Please help ... I am really frying my brain here!
Apr 7 '11 #1
3 1373
Shenno
59
this should work

Expand|Select|Wrap|Line Numbers
  1. <?php error_reporting(E_USER_ERROR); ?>
  2. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
  3. <html xmlns="http://www.w3.org/1999/xhtml"> 
  4. <head> 
  5. <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" /> 
  6. <title>Album</title> 
  7. <link rel="stylesheet" type="text/css" href="homework.css"> 
  8. </head> 
  9. <body>  
  10.     <?php  
  11.       // get form selection  
  12.       $day = $_GET['album'];  
  13.       // check value and select appropriate item  
  14.       if ($choice == 1) {  
  15.         $album = 'James Taylor'; 
  16.         ?> 
  17.         <table> 
  18.         <tr> 
  19.         <td> 
  20.         <a href = index1.html>Back</a><br> 
  21.         <h1>Carolina On My Mind</h1> 
  22.         <h2>'Carolina On My Mind'</h2> 
  23.         <img src="images/taylor.jpg" alt="James Taylor" width="100" height="100"/> 
  24.         <p><span class="style1">Track Titles:<br /> 
  25.         <h3> 
  26.         <ol>echo('1. Dont Talk Now</br> 
  27.         2. Somethings Wrong</br> 
  28.         3. Knockin Round The Zoo</br> 
  29.         4. Sunshine Sunshine</br> 
  30.         5. Taking It In</br> 
  31.         6. Something In The Way She Moves</br> 
  32.         7. Carolina in My Mind</br> 
  33.         8. Brighten Your Night With My Dayecho');</ol>  
  34.         </h3> 
  35.         </span> 
  36.         <br /><iframe title="YouTube video player" width="480" height="290" src="http://www.youtube.com/embed/Gic6B-B6rpg" frameborder="0" allowfullscreen></iframe> 
  37.         </p> 
  38.         </td> 
  39.       </tr> 
  40.     </table> 
  41.     <?php
  42.     echo'</body> 
  43.     </html>';  
  44.  
  45.       }  
  46.       elseif ($choice == 2) {  
  47.         $album = 'The Rolling Stones';  
  48.         ?> 
  49.         <table> 
  50.           <tr> 
  51.         <td> 
  52.         <a href = index1.html>Back</a><br> 
  53.         <h1>The Rolling Stones </h1> 
  54.         <h2>'Symphany For The devil'</h2> 
  55.         <img src="images/stones.jpg" alt="beggars banquet - rolling stones" width="100" height="100"/> 
  56.         <p><span class="style1">Track Titles:<br /> 
  57.         <h3> 
  58.         <ol>echo('1. Sympathy for the Devil</br> 
  59.         2. No Expectations</br> 
  60.         4. Parachute Woman</br> 
  61.         5. Jigsaw Puzzle</br> 
  62.         6. Street Fighting Man</br> 
  63.         7. Prodigal Son</br> 
  64.         8. Stray Cat Blues</br> 
  65.         9. Factory Girl</br> 
  66.         10. Salt of the Earth');</ol> 
  67.         </h3> 
  68.           </span> 
  69.         <br /> 
  70.          <iframe title="YouTube video player" width="480" height="290" src="http://www.youtube.com/embed/iLddJ1WceHQ" frameborder="0" allowfullscreen></iframe> 
  71.         </p> 
  72.         </td> 
  73.       </tr> 
  74.     </table> 
  75.     <?php  
  76.     echo'</body> 
  77.     </html>'; 
  78.       }  
  79.       elseif ($choice == 3) {  
  80.         $album = 'Sting';  
  81.         ?> 
  82.         <table> 
  83.           <tr> 
  84.         <td> 
  85.         <a href = index1.html>Back</a><br> 
  86.         <h1>The Rolling Stones </h1> 
  87.         <h2>'All This Time'</h2> 
  88.         <img src="images/allthistime.jpg" alt="All This Time - Sting" width="100" height="100"/> 
  89.         <p><span class="style1">Track Titles:<br /> 
  90.         <h3> 
  91.         <ol>echo('1. A Thousand Years</br> 
  92.         2. If You Love Somebody Set Them Free</br> 
  93.         3. Perfect Love...Gone Wrong</br> 
  94.         4. All This Time</br> 
  95.         5. Seven Days</br> 
  96.         6. The Hounds of Winter</br> 
  97.         7. Dont Stand So Close to Me</br> 
  98.         8. When We Dance</br> 
  99.         9. Dienda</br> 
  100.         10. Roxanne</br> 
  101.         11. Every Breath You Take');</ol> 
  102.         </h3> 
  103.           </span><br /> 
  104.          </span><br /> 
  105.      <iframe title="YouTube video player" width="480" height="290" src="http://www.youtube.com/embed/MsLzdYR_MaQ" frameborder="0" allowfullscreen></iframe> 
  106.         </p> 
  107.         </td> 
  108.       </tr> 
  109.     </table> 
  110.     <?php  
  111.     echo'</body> 
  112.     </html>'; 
  113.       }  
  114.       elseif ($choice == 4) {  
  115.         $album = 'Bob Dylan'; 
  116.         ?> 
  117.         <table> 
  118.           <tr> 
  119.         <td> 
  120.         <a href = index1.html>Back</a><br> 
  121.         <h1>'Bob Dylan'</h1> 
  122.         <h2>'Hurricane'</h2> 
  123.         <img src="images/dylan.jpg" alt="Bob Dylan Desire" width="100" height="100"/> 
  124.         <p><span class="style1">Track Titles:<br /> 
  125.         <h3> 
  126.         <ol>echo('1. Hurricane</br> 
  127.         2. Isis</br> 
  128.         3. Mozambique</br> 
  129.         4. One More Cup of Coffee (Valley Below)</br> 
  130.         5. Oh, Sister</br> 
  131.         6. Joey</br> 
  132.         7. Romance in Durango</br> 
  133.         8. Black Diamond Bay</br> 
  134.         9. Sara');</ol> 
  135.           </h3> 
  136.          </span><br /> 
  137.      <iframe title="YouTube video player" width="480" height="290" src="http://www.youtube.com/embed/OLDSdnHWaSU" frameborder="0" allowfullscreen></iframe> 
  138.         </p> 
  139.         </td> 
  140.       </tr> 
  141.     </table> 
  142.     <?php  
  143.     echo'</body> 
  144.     </html>'; 
  145.       }  
  146.       elseif ($choice == 5) {  
  147.         $album = 'Robert Plant and Jimmy Page';  
  148.         ?> 
  149.         <table> 
  150.           <tr> 
  151.         <td> 
  152.         <a href = index1.html>Back</a><br> 
  153.         <h1>Jimmy Page & Robert Plant </h1> 
  154.         <h2>'Houses Of Holy'</h2> 
  155.         <img src="images/housesofholy.jpg" alt="House of holy" width="100" height="100"/> 
  156.         <p><span class="style1">Track Titles:<br /> 
  157.         <h3> 
  158.         <ol>echo('1 - The Song Remains The Same</br> 
  159.         2 - The Rain Song</br> 
  160.         3 - Over The Hills And Far Away</br> 
  161.         4 - The Crunge</br> 
  162.         5 - Dancing Days</br> 
  163.         6 - D yer Mak er</br> 
  164.         7 - No Quarter</br> 
  165.         8 - The Ocean');</ol> 
  166.         </h3> 
  167.         <br /><iframe title="YouTube video player" width="480" height="290" src="http://www.youtube.com/embed/D3vs9y6CMrM" frameborder="0" allowfullscreen></iframe> 
  168.         </p> 
  169.         </td> 
  170.       </tr> 
  171.     </table> 
  172.     <?php  
  173.     echo'</body> 
  174.     </html>'; 
  175.       }  
  176.       else {  
  177.         $album = 'Eric Clapton'; }
  178.         ?>
  179.  
  180.         <table> 
  181.           <tr> 
  182.         <td> 
  183.         <a href = index1.html>Back</a><br> 
  184.         <h1>Eric Clapton,Jeff Beck,Jimmy Page</h1> 
  185.         <h2>"Layla"</h2> 
  186.         <img src="images/clapton.jpg" alt="Eric Clapton" width="100" height="100"/> 
  187.         <p><span class="style1">Track Titles:<br /> 
  188.            <h3> 
  189.         <ol>echo('1. Signe</br> 
  190.            2. Before You Accuse Me</br> 
  191.            3. Hey Hey</br> 
  192.            4. Tears in Heaven</br> 
  193.            5. Lonely Stranger</br> 
  194.           6. Nobody Knows You When Youre Down and Out</br> 
  195.           7. Layla</br> 
  196.           8. Running on Faith</br> 
  197.           9. Walkin Blues</br> 
  198.           10. Alberta</br> 
  199.           11. San Francisco Bay Blues</br> 
  200.           12. Malted Milk</br> 
  201.           13. Old Love</br> 
  202.           14. Rollin and Tumblin');</ol> 
  203.         </h3> 
  204. <br /> 
  205. <iframe title="YouTube video player" width="480" height="290" src="http://www.youtube.com/embed/ICpxgxThG7s" frameborder="0" allowfullscreen></iframe> 
  206.         </span> 
  207.         <br /> 
  208.         </p> 
  209.         </td> 
  210.           </tr> 
  211.         </table>  
  212.       }  
  213.  
  214.     <?php echo($track); ?>  
  215.   </body>  
  216. </html>  
  217.  
  218.  
  219.  
Apr 8 '11 #2
Thanks for your help shenno.

I am almost there ... one last problem:
When I choose my artist from the drop down menu it does now bring me to the php page but it shows the choice I made as well as the final artist in the drop down menu. I only want the one I choose. i presume its something do with the "else" statement at the end.

Hopefully this should be the end of my questions on this one.

Thanks again .... HERE IS THE NEW CODE with a few minor changes made on it

Expand|Select|Wrap|Line Numbers
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
  2. <html xmlns="http://www.w3.org/1999/xhtml"> 
  3. <head> 
  4. <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" /> 
  5. <title>Album</title> 
  6. <link rel="stylesheet" type="text/css" href="homework.css"> 
  7. </head> 
  8. <body>  
  9. <?php  
  10. // get form selection  
  11. $day = $_GET['day']; 
  12.       // check value and select appropriate item 
  13.       if ($day == 1) { 
  14. $album = 'James Taylor'; 
  15. ?> 
  16. <table> 
  17. <tr> 
  18. <td> 
  19. <a href = index1.html>Back</a><br> 
  20. <h1>Carolina On My Mind</h1> 
  21. <h2>'Carolina On My Mind'</h2> 
  22. <img src="images/taylor.jpg" alt="James Taylor" width="100" height="100"/> 
  23. <p><span class="style1">Track Titles:<br /> 
  24. <h3> 
  25.  <ol>1. Dont Talk Now</ol> 
  26.  <ol>2. Somethings Wrong</ol>
  27.  <ol>3. Knockin Round The Zoo</ol> 
  28. <ol>4. Sunshine Sunshine</ol>
  29. <ol>5. Taking It In</ol>
  30. <ol>6. Something In The Way She Moves</ol> 
  31. <ol>7. Carolina in My Mind</ol>
  32. <ol>8. Brighten Your Night With My Dayecho</ol>  
  33. </h3> 
  34. </span> 
  35. <br /><iframe title="YouTube video player" width="480" height="290" src="http://www.youtube.com/embed/Gic6B-B6rpg" frameborder="0" allowfullscreen></iframe> 
  36. </p> 
  37. </td> 
  38. </tr> 
  39. </table> 
  40. <?php
  41. echo'</body> 
  42. </html>';  
  43.  
  44. }  
  45. elseif ($day == 2) { 
  46. $album = 'The Rolling Stones';  
  47. ?> 
  48. <table> 
  49. <tr> 
  50. <td> 
  51. <a href = index1.html>Back</a><br> 
  52. <h1>The Rolling Stones </h1> 
  53. <h2>'Symphany For The devil'</h2> 
  54. <img src="images/stones.jpg" alt="beggars banquet - rolling stones" width="100" height="100"/> 
  55. <p><span class="style1">Track Titles:<br /> 
  56. <h3> 
  57. <ol>1. Sympathy for the Devil</ol> 
  58. <ol>2. No Expectations</ol> 
  59. <ol>4. Parachute Woman</ol> 
  60. <ol>5. Jigsaw Puzzle</ol> 
  61. <ol>6. Street Fighting Man</ol>  
  62. <ol>7. Prodigal Son</ol> 
  63. <ol>8. Stray Cat Blues</ol>  
  64. <ol>9. Factory Girl</ol> 
  65. <ol>10. Salt of the Earth');</ol> 
  66. </h3> 
  67. </span> 
  68. <br /> 
  69. <iframe title="YouTube video player" width="480" height="290" src="http://www.youtube.com/embed/iLddJ1WceHQ" frameborder="0" allowfullscreen></iframe> 
  70. </p> 
  71. </td> 
  72. </tr> 
  73. </table> 
  74. <?php  
  75. echo'</body> 
  76. </html>'; 
  77. }  
  78. elseif ($day == 3) {  
  79.  $album = 'Sting';  
  80. ?> 
  81. <table> 
  82. <tr> 
  83. <td> 
  84. <a href = index1.html>Back</a><br> 
  85. <h1>The Rolling Stones </h1> 
  86. <h2>'All This Time'</h2> 
  87. <img src="images/allthistime.jpg" alt="All This Time - Sting" width="100" height="100"/> 
  88. <p><span class="style1">Track Titles:<br /> 
  89. <h3> 
  90. <ol>1. A Thousand Years</ol>
  91. <ol>2. If You Love Somebody Set Them Free</ol> 
  92. <ol>3. Perfect Love...Gone Wrong</ol>  
  93. <ol>4. All This Time</ol>  
  94. <ol>5. Seven Days</ol> 
  95. <ol>6. The Hounds of Winter</ol> 
  96. <ol>7. Dont Stand So Close to Me</ol>  
  97. <ol>8. When We Dance</ol>  
  98. <ol>9. Dienda</ol> 
  99. <ol>10. Roxanne</ol> 
  100. <ol>11. Every Breath You Take</ol> 
  101. </h3> 
  102. </span><br /> 
  103. </span><br /> 
  104. <iframe title="YouTube video player" width="480" height="290" src="http://www.youtube.com/embed/MsLzdYR_MaQ" frameborder="0" allowfullscreen></iframe> 
  105. </p> 
  106. </td> 
  107.  </tr> 
  108. </table> 
  109. <?php  
  110. echo'</body> 
  111. </html>'; 
  112.  }  
  113. elseif ($day == 4) {  
  114. $album = 'Bob Dylan'; 
  115. ?> 
  116. <table> 
  117. <tr> 
  118. <td> 
  119. <a href = index1.html>Back</a><br> 
  120. <h1>'Bob Dylan'</h1> 
  121. <h2>'Hurricane'</h2> 
  122. <img src="images/dylan.jpg" alt="Bob Dylan Desire" width="100" height="100"/> 
  123. <p><span class="style1">Track Titles:<br /> 
  124. <h3> 
  125. <ol>1. Hurricane</ol>  
  126. <ol>2. Isis</ol> 
  127. <ol>3. Mozambique</ol> 
  128. <ol>4. One More Cup of Coffee (Valley Below)</ol> 
  129. <ol>5. Oh, Sister</ol> 
  130. <ol>6. Joey</ol> 
  131. <ol>7. Romance in Durango</ol> 
  132. <ol>8. Black Diamond Bay</ol> 
  133. <ol>9. Sara</ol> 
  134. </h3> 
  135. </span><br /> 
  136. <iframe title="YouTube video player" width="480" height="290" src="http://www.youtube.com/embed/OLDSdnHWaSU" frameborder="0" allowfullscreen></iframe> 
  137. </p> 
  138. </td> 
  139. </tr> 
  140. </table> 
  141. <?php  
  142. echo'</body> 
  143. </html>'; 
  144. }  
  145. elseif ($day == 5) {  
  146. $album = 'Robert Plant and Jimmy Page';  
  147. ?> 
  148.             <table> 
  149.               <tr> 
  150.             <td> 
  151.             <a href = index1.html>Back</a><br> 
  152.             <h1>Jimmy Page & Robert Plant </h1> 
  153.             <h2>'Houses Of Holy'</h2> 
  154.             <img src="images/housesofholy.jpg" alt="House of holy" width="100" height="100"/> 
  155.             <p><span class="style1">Track Titles:<br /> 
  156.             <h3> 
  157.             <ol>1 - The Song Remains The Same</ol>  
  158.             <ol>2 - The Rain Song</ol> 
  159.             <ol>3 - Over The Hills And Far Away</ol>  
  160.             <ol>4 - The Crunge</ol>  
  161.             <ol>5 - Dancing Daysv
  162.             <ol>6 - D yer Mak er</ol>  
  163.             <ol>7 - No Quarter</ol>  
  164.             <ol>8 - The Ocean</ol> 
  165.             </h3> 
  166.             <br /><iframe title="YouTube video player" width="480" height="290" src="http://www.youtube.com/embed/D3vs9y6CMrM" frameborder="0" allowfullscreen></iframe> 
  167.             </p> 
  168.             </td> 
  169.           </tr> 
  170.         </table> 
  171.         <?php  
  172.         echo'</body> 
  173.         </html>'; 
  174.           }  
  175.           else {  
  176.             $album = 'Eric Clapton'; 
  177.             }
  178.             ?>
  179.  
  180.             <table> 
  181.               <tr> 
  182.             <td> 
  183.             <a href = index1.html>Back</a><br> 
  184.             <h1>Eric Clapton,Jeff Beck,Jimmy Page</h1> 
  185.             <h2>"Layla"</h2> 
  186.             <img src="images/clapton.jpg" alt="Eric Clapton" width="100" height="100"/> 
  187.             <p><span class="style1">Track Titles:<br /> 
  188.                <h3> 
  189.                 <ol>1. Signe</ol> 
  190.                  <ol>2. Before You Accuse Me</ol>  
  191.                  <ol>3. Hey Hey</ol> 
  192.                 <ol>4. Tears in Heaven</ol>  
  193.                 <ol>5. Lonely Stranger</ol> 
  194.                 <ol>6. Nobody Knows You When Youre Down and Out</ol>  
  195.                 <ol>7. Layla</ol> 
  196.                 <ol>8. Running on Faith</ol>  
  197.                 <ol>9. Walkin Blues</ol> 
  198.                 <ol>10. Alberta</ol> 
  199.                 <ol>11. San Francisco Bay Blues</ol>  
  200.                 <ol>12. Malted Milk</ol> 
  201.                 <ol>13. Old Love</ol> 
  202.                 <ol>14. Rollin and Tumblin</ol> 
  203.             </h3> 
  204.     <br /> 
  205.     <iframe title="YouTube video player" width="480" height="290" src="http://www.youtube.com/embed/ICpxgxThG7s" frameborder="0" allowfullscreen></iframe> 
  206.             </span> 
  207.             <br /> 
  208.             </p> 
  209.             </td> 
  210.               </tr> 
  211.             </table>  
  212.           }  
  213.  
  214.         <?php echo($album); ?>  
  215.       </body>  
  216.     </html>  
  217.  
Apr 8 '11 #3
I have set them up on a server with the html file on http://www.guidewiresmusic.com/webde...ct/index1.html if you need to see it.
Apr 8 '11 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Dinesh Garg | last post by:
Hi All, I want to use MS sql server edition 2000. I have installed the server. Now i want to create the database on this server with tables and triggers. Can please someone suggest me how to do...
1
by: Arjen | last post by:
Hello, If I choose to use a database then I need to use multiple tables. With a XML file I can select "my objects" as once. I think that there will be around 10.000 records (objects). I want...
2
by: eye5600 | last post by:
I have created a dataset (.xssd) and a report (.rpt). In my program, I create an instance of the dataset and populate it with data, not using a database. I createa a erport instance from the...
3
by: Fabian | last post by:
Hello, Iam searching for a way to design a letter with Crystal Report. Now I want to imlement a table. I have the Data in a ArrayList, but it will not be able to make a Database, so I need a way...
2
by: news | last post by:
hi im new in the .net environnement i have a work to do in school im able to display a datagrid using a database in access and im also able to display a datagrid using a database in foxpro 8.0...
2
by: kkant | last post by:
Hi , I am KKant from Bangalore, India. I have a jos to do, I have to store VB codes in a a Database (Access) table and in Run time I have to read those codes and Exute them. But I dont know how to...
5
by: KewlToyZ | last post by:
Good day, I am stuck in a strange situation. SQL 2000 Server, creating a stored procedure to use in Crystal Reports 11. I am trying to build a report without creating a table or temprorary table in...
0
by: kumardharanik | last post by:
i need to fill the datatable(datagridview) without using the database.. Here is my code.. But i cant able to fill the datatable [CODE} Public Sub CreateDatatable() dtable = New...
1
by: Rizki | last post by:
hai i want to make the update form for my website, and in my update form there is two combo box for chose where database you want to input the data and where table do you want to fill the field,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.