Jump to content

Recommended Posts

I am not entirely sure if I have got the right place for this (mods feel free to move this if you want).

 

But I just wanted to get some much needed help in doing OOP with regards to pulling data of products from a database and simply show them in a display.

 

Its more concerning arrays and OOP but lacking anywhere to go for it that makes sense as such.

 

Basically all i want is to say I have a products table with of course id, productname and price (3 attributes in the class).

 

Create an object for each one (would I do it like this?)

 

Then apply data from the database to them.

 

Finally simply display them in the form.

 

Just I find it very interesting going further with this but just when I come to see any examples, I get overwhelmingly stuck, sorry if I am being ignorant to any other posts on this but just if there are any good ones could you point me to them please?

 

I really look forward to any replies given in advance,

Jez.

Link to comment
https://forums.phpfreaks.com/topic/220476-design-of-a-products-view/
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.