On 4/25/2005 5:23:16 PM, Ed Dorsch (edorsch@xxxxxxxxxxx) wrote: > I'm scripting a photo gallery page that generates links (1 through $max), sends the selected number in the url, then displays a set of photos based on the number. However, I want it to display the number of the current gallery differently than the other numbers. If the browser clicks on "3" and is looking at gallery "page" three, then I don't > want the number three to be a link -- and maybe it should be bolder or > lighter or something. Any ideas? I was thinking of nesting an "if > then" > inside the "for > next" but can't seem to make anything work. > > Thanks, Quite simple, I am guessing you are getting the selected number in the url like this: photo_page=3 When you are looping thrugh the numbers to display them...have soemthing like this if($photo_page=$display_page) {/*just number, no link*/} else {/*normal number and links code*/} -Ryan -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.308 / Virus Database: 266.10.2 - Release Date: 4/21/2005 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php