helenp - 6:44 am on Oct 21, 2013 (gmt 0)
1. The code you pasted is not HTML, it is the PHP that generates HTML.
2. The code you pasted contains a table even though you claim it doesn't, so I'm not sure what to believe. Either this isn't the code you're using, or you're mistaken about it not using tables.
I know its php with html, but its the same, its html using php, and yes it is a table but the result is not displayed as a normal table like this:
header 1, header 2, header 3, header 4
row1 row 1 row 1 row 1
row2 row 2 row 2 row 2
A sortable tablescript sorts by the headers,
my script does not have any headers, even so,
I added headers just to test, but it did only sort by the first header, suppose this is due to not being displayed as a table with table and rows.
As you can see in the script there are only two <td>
one with 5 vars in, and one with the image.
So the output needs to be changed, wich I dont know if is possible, or to sort by something else than the columns headers (<td>) for exampel an array as said before.
I need to be able to sort by vars that are in the same <td> so I cant add header to sort by