On Sat, 9 Jan 2010 14:00:22 +0530 bharani kumar said:

> In the Left hand side DIV , i want to print 5000 Records,
> 
> In the Right hand Side DIV , i want to print 5000 Records,
> 
> What is the Idea for this ,
> 
> Thanks

$div1str = $div2str = '';
$qry = 'SELECT name FROM students [ORDERED BY ...]';
$res = mysql_query($qry);
for ($cnt=0; $cnt < 5000; $cnt++) {
    $row = mysql_fetch_array($res);
    $div1str .= '<br>' .$row['name'];
}

while ($row = mysql_fetch_array($res))
   $div2str .= '<br>' .$row['name'];

echo '<table>';
echo '<tr><td>', $div1str, '</td><td>', $div2str, '</td></tr>';
echo '</table>';

Regards,
-- 
Don Read                                        don_r...@att.net
     It's always darkest before the dawn. So if you are going to
     steal the neighbor's newspaper, that's the time to do it.

-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:    http://lists.mysql.com/mysql?unsub=arch...@jab.org

Reply via email to