Multiple SQL Queries to Multiple HTML Tables

A

Anonymous

Guest
Hi I m just trying to help u
try this one as i used to :

<table>
<tr>
<td>Query1</td>
<td>Query2</td>
<td>query3</td>
</tr>
</table>

I just wrote the sample code so u have to write full with loops and structure of your columns.
OK
 
Try this code

<?php
global $r;
$res = mysql_query("SELECT * FROM $querytable ORDER BY q_id DESC LIMIT 500") ;
while (($line = mysql_fetch_assoc($res)) && strlen(ob_get_contents()) < 95*1024)
{
$r= $r. "<tr><td>firstcolumn</td><td>secondcolumn</td><td>thirdcolumn
</td></tr>";


}

?>
<html>
<body>
<table>
<?=$r?>
</table>
</body>
</html>
 
Back
Top