Posted by C. on 09/23/07 02:51
On 21 Sep, 17:55, Andrew <stroke...@NOThotmail.com> wrote:
> Could I get your help with this problem? It has got me stumped.
>
> I want to display and save any images from a like this one.http://www.somesite/index.php?s=4e0e5ea42fec1a1c3ed=attach&type=post&...
> The challenge is that the last number increments by one. I could just
> edit the browsers address bar for each image but I was looking for a
> php program.
>
> How can it be done?
if ($_GET['picture']) {
print "<a href='this.php?picure='" . ($_GET['picture']-1) .
"'>prev</a><br />";
}
print "<img src='" . $_GET['picture'] . ".gif'><br /><a href='this.php?
picure=";
print ($_GET['picture']+1) . "'>next</a>";
(yawn)
This is probably the simplest part of the application you've just
described; it seems trivial to me. Either I've not understood the
problem or you really need to go buy a good book on basic programming.
C.
[Back to original message]
|