cjour Posted January 28, 2007 Share Posted January 28, 2007 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]<?phpinclude("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] Quote Link to comment Share on other sites More sharing options...
Jessica Posted January 28, 2007 Share Posted January 28, 2007 It helps if you tell us what isn't working right. Quote Link to comment Share on other sites More sharing options...
cjour Posted January 28, 2007 Author Share Posted January 28, 2007 lol opps. well when you click on the links it doesn't change the case like the default will stay if you click on case dos. Quote Link to comment Share on other sites More sharing options...
Jessica Posted January 28, 2007 Share Posted January 28, 2007 before the switch do $image = $_GET['image']; Quote Link to comment Share on other sites More sharing options...
cjour Posted January 28, 2007 Author Share Posted January 28, 2007 thanks so much for the help. :) Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.