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 February 21st, 2010, 07:13 AM
Authorized User
 
Join Date: Feb 2010
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Default chapt 7 modification

HI there,

I've been trying to modify the chapter 7 script to implement a simple web content management system where the site administrator can modify the content of the site - ie add/change images, text etc. I can get the uploading and renaming etc working but I'm struggling to workout how to reference the file name in order to permanently imprint the image on the (users version of the )page. If I use the $lastpicid variable once another image is uploaded it will show that image rather than the one I wanted to show. My thinking is I need to rename each image with a page reference and a new number (ie indexphoto 1, indexphoto 2, etc). Unless there's a much simpler way to do it that I haven't considered, the bit I can't get my head around is how to get the reference number to increment considering the auto_increment id in the database doesn't necessarily start at 1 (if items are deleted the auto increment keeps going from where it was last).
Any thoughts out there?

Thanks in advance.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Modification on records.....one by one. akshay_rangar ASP.NET 2.0 Basics 0 January 26th, 2007 12:57 PM
Webshop modification El Presidente BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 21 December 6th, 2006 03:14 PM
Webshop Modification saf BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 5 November 3rd, 2006 07:49 PM
Kernal Modification!!HOW????? harsh_hot Linux 3 May 28th, 2006 09:23 PM
Installation package modification eelisMX Pro VB.NET 2002/2003 0 April 20th, 2005 03:34 AM





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