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] Link to comment https://forums.phpfreaks.com/topic/36038-solved-complete-noob/ 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. Link to comment https://forums.phpfreaks.com/topic/36038-solved-complete-noob/#findComment-171023 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. Link to comment https://forums.phpfreaks.com/topic/36038-solved-complete-noob/#findComment-171026 Share on other sites More sharing options...
Jessica Posted January 28, 2007 Share Posted January 28, 2007 before the switch do $image = $_GET['image']; Link to comment https://forums.phpfreaks.com/topic/36038-solved-complete-noob/#findComment-171029 Share on other sites More sharing options...
cjour Posted January 28, 2007 Author Share Posted January 28, 2007 thanks so much for the help. :) Link to comment https://forums.phpfreaks.com/topic/36038-solved-complete-noob/#findComment-171039 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.