Re: Sepating MySQL result set into html tables
| From: | b | Date: | Fri, 26 Sep 2008 17:06:12 +0000 |
| Subject: | Re: Sepating MySQL result set into html tables | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-280997@lists.php.net to get a copy of this message | ||
Thodoris wrote:
Hello everybody, I have a mysql result set that I want to print out in an html table. But some times it gets so big that I will probably need to separate it in to multiple ones. I wrote a function that separates the result set into three ones like this: ... But I really need to tell the function in how many tables I need the result set to be separated. How can I do this? What can I put instead of this for 3 tables: (($j == $limit-1) || ($j == (2*$limit)-1)) I can't find the algorithm although I think I have done this before but I can't remember how.Why not just use LIMIT in your query and make several? Why do you need to split the data into multiple tables, anyway?
$table = "<table class='inner'>"; $table .= "<table><tr><td><table class='inner'>";That's going to give you badly-formatted HTML.