For my website each user has their own mini web site. With each page they can rearrange their blocks (holds page content). Once they have rearranged their blocks a string like this '3,1|1,1|1,1|1,1|1,1|1,1|1,1|1,1|1,1' goes to the DB .
Each section which is separated by '|' is the colspan and rowspan of a block for a table. So 3,1 is for block1, 3 is the colspan and 1 is the rowspan.
How do I spilt this all up, so it because variables, like;
$block1_colspan = 3;
$block1_rowspan = 1;
and so on for every block?
Tags: