Jump to content

list mysql data using php with sub headings?


eddieblunt

Recommended Posts

hi,

i've got a database table storing products for a hire company, the database is a copy of their brochure so i'm sorting by page sections so link to section 4 reads /product.php?page=4

 

 

here are the section names

 

Access Equipment 4

Breaking, Drilling & Fixing Equipment 8

Cleaning Equipment 10

Concrete / Cement Equipment 11

Masonry & Tile Equipment 12

Heating & Drying Equipment 13

Power & Site Electrical Equipment 14

Painting & Decorating Equipment 15

Roofing Equipment 16

Plumbing Equipment & Pumps 17

Engineering Equipment 18

Gardening / Landscaping Equipment 19

Woodworking Tools & Equipment 20

Welding Equipment 21

Surveyors Equipment 22

Traffic Management Equipment 23

Building & Site Equipment 24

Scaffolding & Access Systems 27

Fall Protection Systems 30

 

 

inside each of the sections there are products which need to be listed under their own sub headings

 

e.g.

 

Page 4

-ladders

  --size 1

  --size 2

  --size 3

-Platforms

  --size a

  --size b

  --size c

 

i've added a field into the database table for the sub heading but how can i list all items on each page under their own sub heading?

 

 

hope that made sense? Quite new to php so detailed help will be required!

 

 

Thanks

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.