Jump to content

Is this possible?


Sunamena
 Share

Recommended Posts

Current page = "yoursite.com/chptr2.php"

IF "yoursite.com/chptr(+1 from current number).php" exists
Include this HTML: <a href="chptr3.php"><img src="yoursite.com/images/buttons/end.png" alt="Go to the newest chapter." title="Go to the last chapter."></a>

 

 

ELSE
Include this HTML: <img src="yoursite.com/images/buttons/noend.png" alt="Go to the newest chapter." title="Go to the last chapter.">

 

 

 

If this is possible can you teach me how to do so? Or send me a tutorial?


Also: Should i use a table tag to align 4 buttons next to eachother? That is how i am currently doing it.


Looking forward to your replies =D

Link to comment
Share on other sites

You can use the file_exists() function, but just keep in mind it uses the server directory structure, so don't include the domain name, figure out the location of the file on the server relative to the current file.

 

Don't use a table just to align things horizontally, use CSS. There are many CSS techniques for that. You can change display to "inline-block" or just use float to move elements to the left.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...