Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > PHP/MySQL > BOOK: Beginning PHP5, Apache, and MySQL Web Development ISBN: 978-0-7645-7966-0
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old September 28th, 2005, 10:52 PM
Registered User
 
Join Date: Feb 2005
Location: , , .
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
Reply With Quote
  #2 (permalink)  
Old December 18th, 2005, 12:15 PM
Registered User
 
Join Date: Nov 2005
Location: , , .
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...


Reply With Quote
  #3 (permalink)  
Old October 18th, 2006, 12:58 PM
Registered User
 
Join Date: Oct 2006
Location: , , .
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
Reply With Quote
  #4 (permalink)  
Old March 2nd, 2010, 05: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
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

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 02: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 10:21 PM



All times are GMT -4. The time now is 10:24 AM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.