Re: How is this possible?
| From: | Simon Fredriksson | Date: | Tue, 29 Jul 2003 01:20:05 +0000 |
| Subject: | Re: How is this possible? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-157260@lists.php.net to get a copy of this message | ||
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, -RyanThat'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