Nami01 Posted March 13, 2006 Share Posted March 13, 2006 Hello,I'm sorry for being such a newbie. I actually really don't know anything about php almost at all. I had a script that my friend made me back in 2003 to help me with my webcomics and I wanted to use it again. I copied it and pasted it, but found it no longer worked. As I have no way of contacting him anymore, my only hope is to figure out something myself.This is the basic idea of the script. <?php $comicpages = array( "1_0"=> array( "piclink"=> "comic/1_0.jpg", "comments"=> "<div align=center>Yum, Ben.</div>", "chapter"=> 1, "page"=> 0, "new"=> 1 ), );?><?php if(isset($id)) { function navigatebar($id, $comicpages) { $plusone = $comicpages[$id]['page'] +1; $minusone = $comicpages[$id]['page'] - 1; if(isset($comicpages[$comicpages[$id]['chapter'] . "_$plusone"])) {?>| <a href="comic.php?id=<?=($comicpages[$id]['chapter'])?>_<?=$plusone?>"><u><b><next<</b></u></a> <?php }?> | reads. right. to. left. | <?php if(isset($comicpages[$comicpages[$id]['chapter'] . "_$minusone"])) {?> <a href="comic.php?id=<?=($comicpages[$id]['chapter'])?>_<?=$minusone?>"><u><b>>previous></b></u></a> |<?php } }?><!-- BODY TEXT START --><div align=center> <p> <font size="1"> <br> <? navigatebar($id, $comicpages) ?><b><img src="<? echo $comicpages['$id']['piclink']; ?>" width="600" height="928" alt="click. to. return." border="0"> <br><a href="./"><img src="<?=$comicpages[$id]['piclink']?>" width="600" height="845" alt="click. to. return." border="0"></a><br> <? navigatebar($id, $comicpages) ?> <BR><BR></div> <? echo $comicpages[$id]['comments']?> <BR><BR><?php }?> </font>If I place '1_0' in the $id area, the image shows on my website. But the another part of the site that is working properly has it so the address for this page would be[indent]www.mangacandy.com/vntm/comic.php$id=1_0how can I have it so $id will show the value on the top part of my site?Thank you in advance for any help that you can offer me! Link to comment https://forums.phpfreaks.com/topic/4879-old-comic-script/ Share on other sites More sharing options...
keeB Posted March 13, 2006 Share Posted March 13, 2006 [code]www.mangacandy.com/vntm/comic.php$id=1_0 [/code]should be..[code]www.mangacandy.com/vntm/comic.php?id=1_0[/code]aside from that, i'll take a look.. Link to comment https://forums.phpfreaks.com/topic/4879-old-comic-script/#findComment-17179 Share on other sites More sharing options...
Nami01 Posted March 13, 2006 Author Share Posted March 13, 2006 [!--quoteo(post=354697:date=Mar 13 2006, 05:38 PM:name=keeB)--][div class=\'quotetop\']QUOTE(keeB @ Mar 13 2006, 05:38 PM) [snapback]354697[/snapback][/div][div class=\'quotemain\'][!--quotec--][code]www.mangacandy.com/vntm/comic.php$id=1_0 [/code]should be..[code]www.mangacandy.com/vntm/comic.php?id=1_0[/code]aside from that, i'll take a look..[/quote]Oops! Sorry, I meant www.mangacandy.com/vntwm/comic.php?id=1_0 I was typing fast and made two errors already. o_o the script was copy and pasted though, so thats the actual text.v_v but for some reason it won't work... Link to comment https://forums.phpfreaks.com/topic/4879-old-comic-script/#findComment-17181 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.