What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Skype & Technology » Tech Talk » Can someone edit this script?

Can someone edit this script?
Author: Message:
Plik
Veteran Member
*****

Avatar

Posts: 1489
Reputation: 46
34 / Male / –
Joined: Jun 2004
RE: Can someone edit this script?
Blah i should have been able to work that our myself :dodgy:
anyway this should work, although i havnt tested it.
code:
<?
$num = $_GET['num'];
if(!isset($_GET['num']) OR $num < 1){ //If the input is less than one correct it
$num = "1";
}
?>
<img src="http://www.hobbes.weirdfish.net/strips/strip<?echo $num;?>.jpg" alt="strip<?echo $num;?>.jpg error">
<?php
//first we count the files in the strips
$files = scandir("strips");
$fileno = count($files) - 2;//ignore the . and .. entries
if($num != $fileno){//If we are on the last line dont echo a link other wise do
echo "<a href=\"http://hobbes.weirdfish.net/strip.php?num=" . $num+1 . "\">Foward</a>";
}
if($num > 1){ //check to see if the number is greater than one, if so echo the back link
echo "<a href=\"http://hobbes.weirdfish.net/strip.php?num=" . $num-1 . "\">Back</a>";
}
//other wise just dont echo anything
?>

But as ash said you should try and work these things out for yourself.
http://www.php.net will become your bibble :p

This post was edited on 03-26-2005 at 01:22 PM by Plik.
03-26-2005 01:21 PM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Can someone edit this script? - by .Roy on 03-26-2005 at 12:12 PM
RE: Can someone edit this script? - by Plik on 03-26-2005 at 12:15 PM
RE: RE: Can someone edit this script? - by Ash_ on 03-26-2005 at 12:16 PM
RE: Can someone edit this script? - by .Roy on 03-26-2005 at 12:44 PM
RE: RE: Can someone edit this script? - by Ash_ on 03-26-2005 at 01:19 PM
RE: Can someone edit this script? - by Plik on 03-26-2005 at 01:21 PM
RE: Can someone edit this script? - by -dt- on 03-26-2005 at 01:30 PM
RE: RE: Can someone edit this script? - by Ash_ on 03-26-2005 at 01:31 PM
RE: Can someone edit this script? - by Plik on 03-26-2005 at 01:33 PM
RE: Can someone edit this script? - by -dt- on 03-26-2005 at 01:35 PM
RE: Can someone edit this script? - by .Roy on 03-26-2005 at 01:48 PM
RE: Can someone edit this script? - by Plik on 03-26-2005 at 01:50 PM
RE: Can someone edit this script? - by .Roy on 03-26-2005 at 01:52 PM
RE: RE: Can someone edit this script? - by Plik on 03-26-2005 at 01:57 PM
RE: Can someone edit this script? - by .Roy on 03-26-2005 at 02:01 PM
RE: Can someone edit this script? - by Plik on 03-26-2005 at 02:03 PM
RE: Can someone edit this script? - by .Roy on 03-26-2005 at 02:04 PM
RE: Can someone edit this script? - by Plik on 03-26-2005 at 02:23 PM
RE: Can someone edit this script? - by .Roy on 03-26-2005 at 02:23 PM
RE: Can someone edit this script? - by Plik on 03-26-2005 at 02:27 PM
RE: Can someone edit this script? - by .Roy on 03-26-2005 at 02:32 PM
RE: Can someone edit this script? - by segosa on 03-26-2005 at 07:32 PM
RE: Can someone edit this script? - by Plik on 03-26-2005 at 08:00 PM
RE: Can someone edit this script? - by segosa on 03-26-2005 at 08:12 PM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On