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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.