|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
From: Don Read (don_read
att.net)
Date: Sat Jan 09 2010 - 09:27:11 CST
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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_read
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
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]