Jump to content

[SOLVED] complete noob


cjour

Recommended Posts

hello well i know very little php and i'm just trying to do a simple dynamic image gallery and for some reason my code isn't working when i'm pretty sure it is right. perhaps you guys can tell me what i am doing wrong.

[code]
<?php
include("headeruno.txt");
echo"<link rel='stylesheet' href='css/0107.css' title='hidden'>";
include("headerdos.txt");
include("calendar.txt");
echo"<div id='bottom'><div id='thumbs'>";
echo"
<a href='droom.php'><img src='css/images/droom/0107/unotn.jpg'></a>
<a href='droom.php?image=dos'><img src='css/images/droom/0107/dostn.jpg'></a>
<a href='droom.php?image=tres'><img src='css/images/droom/0107/trestn.jpg'></a>
<a href='droom.php?image=quatro'><img src='css/images/droom/0107/quatrotn.jpg'></a>
<a href='droom.php?image=cinco'><img src='css/images/droom/0107/cincotn.jpg'></a>
</div>";
switch ($image) {
case "dos":
echo"<div id='dos'>";
break;
case "tres":
echo"<div id='tres'>";
break;
case "quatro":
echo"<div id='quatro'>";
break;
case "cinco":
echo"<div id='cinco'>";
break;
default:
echo"<div id='uno'>";
}
echo"</div></div>";
include("footer.txt");
?>
[/code]
Link to comment
https://forums.phpfreaks.com/topic/36038-solved-complete-noob/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.