Reply to Re: Increment id number for _Get

Your name:

Reply:


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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация