Wrox Programmer Forums
|
PHP How-To Post your "How do I do this with PHP?" questions here.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the PHP How-To 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 July 9th, 2007, 02:09 PM
Registered User
 
Join Date: Jul 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default image/db issue

Still a little new to some parts of PHP, and I can't seem to find a good solution to this problem.

I have a row of placeholder images lined up in a grid on the site. What I would like to do is pull entries from the database and replace the placeholder images with the ones from the database. If possible I would also like to scatter the entries.

The database has several entries and will be pulled a few at a time, based on the class.

ex. x=placeholder image

      |x|x|x|x|
      |x|x|x|x|
      |x|x|x|x|
      |x|x|x|x|



ex2.
      |6|x|9|3|
      |x|1|x|7|
      |4|x|5|x|
      |8|x|2|x|


Any help would be appreciated!

 
Old July 11th, 2007, 02:22 PM
Friend of Wrox
 
Join Date: Nov 2005
Posts: 223
Thanks: 0
Thanked 0 Times in 0 Posts
Default

What do you mean with grid? do you mean a table?
how about every image has an array to start with and you randomly place the arrays

__________________________________________________ ________
I am DJ Kat...that's my name. Its a D and a J and a Kat with a K.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Issue with image buttons aspless Classic ASP Basics 11 December 19th, 2007 06:32 PM
Insert Issue into Acces DB brawny4 Visual Basic 2005 Basics 2 February 21st, 2007 08:43 PM
DB issue Hasee VS.NET 2002/2003 0 February 11th, 2004 07:57 AM





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