Wrox Programmer Forums
|
BOOK: Beginning PHP5, Apache, and MySQL Web Development ISBN: 978-0-7645-7966-0
This is the forum to discuss the Wrox book Beginning PHP5, Apache, and MySQL Web Development by Elizabeth Naramore, Jason Gerner, Yann Le Scouarnec, Jeremy Stolz, Michael K. Glass; ISBN: 9780764579660
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning PHP5, Apache, and MySQL Web Development ISBN: 978-0-7645-7966-0 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 28th, 2005, 10:52 PM
Registered User
 
Join Date: Feb 2005
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to SmoothAl Send a message via Yahoo to SmoothAl
Default (Chap. 7) Creating Thumbnails/Photo Galleries

Hello all!

Here's my scenario: I have followed the code from the text, I changed up the display of the thumbnails, so that they are viewed side by side (horizontally), instead of like in the text where the images, etc. were one on top of the next (vertically).

My goal is to get all new images that get uploaded, to wrap to a new row, however they currently don't. I suppose the best way would be to find the clearest way to add code that will define ROW and COLUMN sizes. Does anyone have ideas on the best way to code this?

SA
 
Old December 18th, 2005, 01:15 PM
Registered User
 
Join Date: Nov 2005
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

have it count...

so that every 5 rows or so it starts a new column...


 
Old October 18th, 2006, 12:58 PM
Registered User
 
Join Date: Oct 2006
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

use a if statement, they are in the book...
sorry cant remember the actual code so think of this as pseudo code.
eg.
$x=0;
while table details are true
{
if ($x == 5){
    echo "</td></tr><tr><td>";
    $x=0;}
$x++;
}

Hope that helps and sorry its not true code, having issues with creating thumbnails myself and hoping the answer is in here
Richard
 
Old March 2nd, 2010, 06:27 AM
Authorized User
 
Join Date: Feb 2010
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi Smooth Al,

I know its a long time since you posted this, but I wouls like to do exactly what you have done - show the images horizontally. If you're (or anyone else reading this) are still floating around on this forum it would be great if you could give me some tips on how you go about doing this.

Thanks in Advance
Michael





Similar Threads
Thread Thread Starter Forum Replies Last Post
Error posting photo to photo album abel714 BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 10 February 5th, 2007 03:07 AM
Display 'no photo' in a JSP when photo is not pres Inderjeet Pro JSP 0 April 21st, 2006 05:35 AM
Chap 15, Try It Out: Creating RPC Server in asp ML BOOK: Beginning XML 3rd Edition 2 September 30th, 2005 07:25 AM
Please!!Chap 07-Creating an Installer amouzeshgah VB.NET 2002/2003 Basics 0 September 13th, 2005 11:28 PM
fading from photo to photo in flash elladi Flash (all versions) 1 November 28th, 2004 11:21 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.