Dont worry.
First of all: "id" is private. Meaning you can ONLY access it inside the container class. You need to make it public if you want to access it like that.
Just replace this
private $id;
with
public $id;
then you can do echo $container->id;
Otherwise you need to add a so...
Add a "sorting column" type int to your photo table. Query the fotos like "SELECT * FROM photos ORDER BY sorting asc". The lower the number the higher it is shown on the side
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.