By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,614 Members | 1,662 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,614 IT Pros & Developers. It's quick & easy.

Need help

P: 1
Hi..

Please let me know how to make gridview control in php using mysql database...???

thanks
Feb 27 '08 #1
Share this Question
Share on Google+
1 Reply


hsriat
Expert 100+
P: 1,654
Hi..

Please let me know how to make gridview control in php using mysql database...???

thanks
[php]$sql = mysql_query("SELECT * FROM `table`");

echo "<table>";
while($row = mysql_fetch_array($sql))
{
echo "<tr><td>".$row['col1']."</td><td>".$row['col2']."</td><td>".$row['col3']."</td></tr>";
}
echo "</table>";[/php]

Is this what you need?
Feb 27 '08 #2

Post your reply

Sign in to post your reply or Sign up for a free account.