Need help with simple code, back and forward buttons.


Posted on 16th Feb 2014 07:03 pm by admin

Basically, I have a set of pages in a folder, which have the title somephrasehere_09.php, somephrasehere_10.php, somephrasehere_11.php, etc. On each of these pages, I want to include a common code that acts as a previous and next link. So, on the 10.php page, I want some code that will link to 09.php (and one for 11.php), and on another page, say 05.php, I want to be able to use the same code, resulting in links to 04.php and 06.php.

Now, my PHP knowledge is limited, but it seems to me that manipulating URLs and adding/subtracting numbers to create a new URL should be fairly simple. So, can someone help me with how to do this?

Sorry if you're not supposed to post requests here

No comments posted yet

Your Answer:

Login to answer
132 Like 12 Dislike
Previous forums Next forums
Other forums

INSERT for date range
Hi all

I have the following table

Code: [Select] `date` date
`day` int(2)
`

Give me all your tricks for minimizing jar file size

Hi, I'm coming close to releasing my J2ME game... I am kicking up against the 64k size barrier w

add text and number image
hi guys ..

ok see i want the user to add their name and pick a number then click get it and i

Placing and array within an array then sorting it!
I have a page that runs two large mysql queries and saves the results into arrays, in php I then per

Force download script not handling files with spaces properly
I have a regular old php force download script, uses this code:

Code: header("Cache-Cont

Get word number x from string?
How can I use a function to loop through a string, and "have a look at" every word in the

Server side $_SESSION
how does one keep the session completely server side. no cookies to the browser at all. i need this

SAP Project Module
I have seen in the SAP Project Module,plan cost and budget are not equal and even difference is sign

Setting/Modify Headers using mail() function
I have a question about setting email headers when using mail() in a php script.

When I send

How to clone an SAP ECC using bacup tape on z/os?
We want to clone our production to a different SID using backup tape.

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash