Results 1 to 2 of 2

Thread: Need some help... what's the best method of approach?

  1. #1
    Join Date
    Mar 2005
    Posts
    5

    Need some help... what's the best method of approach?

    Hi guys!

    I'm trying to create 200px by 100px boxes on my webpage according to the # of boxes stated in the database.

    What i have in mind is to have the php script read the # of boxes in the database and then populate/create the boxes accordingly on my website. How would I do that? Please show an example if you have any... Thank and have a good day!

  2. #2
    Join Date
    Jan 2006
    Location
    NYC, USA
    Posts
    7
    You can handle this in many different ways...

    If you are using a MySQL and PHP its fairly easy, you can use my MySQL query to grab the number value from a table row in the database and then have a "for" loop in php looping the value you grabbed from the database table....

    For each loop you do, you dynamically write out the code for the box.

    This will generate the amount of boxes which is specified at a table in your database.



    Quote Originally Posted by rca420
    Hi guys!

    I'm trying to create 200px by 100px boxes on my webpage according to the # of boxes stated in the database.

    What i have in mind is to have the php script read the # of boxes in the database and then populate/create the boxes accordingly on my website. How would I do that? Please show an example if you have any... Thank and have a good day!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •