Ryan A wrote:
Hi,
I am trying to get my data into a very similar layout as this:
http://hostfilter.com/ComparePlan.asp?IntVal1=389&IntVal2=546&IntVal3=605
see the table with the plans...how is he getting that in one table? what
kind of logic is that? the best I can do is for each column I have to use
another table (nested tables) but he has somehow managed to get all in
one... is this a special ASP thing?

This is my implemption of it:
http://bestwebhosters.com/compare.php?id%5B%5D=1&id%5B%5D=2&id%5B%5D=4&id%5B
%5D=5&id%5B%5D=13&type=1

Its much slower, because it uses more tables and nested tables...but its in
php :-)


I just cant understand it...any ideas?


Cheers,
-Ryan



That's acutally a quite easy procedure if your table is structured correctly. My suggestion is that you simply make the SQL table like you the HTML table look.

Columns:
title : lp1 : lp2 : lp3......

Values:
ssh   :  1  :  1  :  1
php   :  1  :  1  :  0
ssi   :  1  :  0  :  0

Just structure the table like that. It's not the wisest thing to do if you're gonna have loads of columns, but it's an easy solution.

//Laban


-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to