Skip to content
Advertisement

Creating specific size

enter image description hereI have a table in html.I want to add that table with php on my database. The problem is with my table. I have done that

I have 24 positions and that I want to give in my table that those 24 are that size,not 25 and going on..Second,I have B and R that it is the color (It is ok that).Now I put Id because that’s how I name the images I have on my table (the table that it is in my html) ,I name those Id:0 ,Id:1 until 30 (because 30 are the max images I have – I don’t want more).

I create with that my table,I open sqlite,I go to that table and I start putting

and it goes like this until the end of 30
. . . . . I press save the button ,all fine.I go to phpmyadmin to check my table and it wasn’t as I created..How can I do that thing?to have position 24 ,30 id (that will be different images ) .Save the 30 Id to 24 position.

edited: as you can see from the image I have created position and id .The table I want is like those. The position is where it belongs my image. The id is the image.I just want to pass from a table I have the position and the id in that table and I want to be right.enter image description here.When I move those images they create a table with variable position and Id. That table I want to pass into my table (in database table).If I put more images I will have Id 2enter image description here and the position which I dragged.That’s what I am trying to do. As you can understand I want to have only 30 images.Every image is unique. They have other Id,not the same.More details,id =0 is the image a , the id =1 is the image b .The positions is ,in the image as you can see it is just the number of the table you see it where I move those images.

EDITED

Advertisement

Answer

I don’t really understand your question, but here’s an example of re-ordering a list…

So, let’s say we want to drag the image in position 5 to position 2…

Here’s a fuller example, using some PHP to output to HTML… perhaps someone else can make it pretty…

Outputs (for instance, and depending what values were used, and how often)…

User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement