<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <channel>
    <title>'How to create listview in a web page?' Thread RSS Feed</title>
    <link>http://www.programmersheaven.com/</link>
    <description>Contains the latest posts from the thread 'How to create listview in a web page?' posted on the 'PHP' forum at Programmer's Heaven.</description>
    <language>en</language>
    <copyright>Copyright 2013 Programmers Heaven</copyright>
    <pubDate>Sat, 18 May 2013 00:51:02 -0700</pubDate>
    <lastBuildDate>Sat, 18 May 2013 00:51:02 -0700</lastBuildDate>
    <generator>Argotic Syndication Framework 2007.3.0.1, http://www.codeplex.com/Argotic</generator>
    <docs>http://www.rssboard.org/rss-specification</docs>
    <ttl>360</ttl>
    <image>
      <url>http://www.programmersheaven.com/images/ph.gif</url>
      <title>Programmers Heaven</title>
      <link>http://www.programmersheaven.com/</link>
      <width>88</width>
      <height>31</height>
    </image>
    <item>
      <title>How to create listview in a web page?</title>
      <link>http://www.programmersheaven.com/mb/phpstuff/422205/422205/how-to-create-listview-in-a-web-page/</link>
      <description>This is my first time to make a web page . I'm using PHP and Mysql database. I've already connected the database, and creating the table. Here's the code:&lt;br /&gt;
&lt;br /&gt;
Database Connection:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="sourcecode"&gt;
1	&amp;lt;?php
2	mysql_connect("localhost", "root") or die(mysql_error());
3	echo "Connected to MySQL&amp;lt;br /&amp;gt;";
4	?&amp;gt;
&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
Creating Table:&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="sourcecode"&gt;
01	&amp;lt;?php
02	 
03	mysql_connect("localhost",  "root") or die(mysql_error());
04	mysql_select_db("Stud_Info") or die(mysql_error());
05	 
06	mysql_query("CREATE TABLE Student_Info(
07	id INT NOT NULL AUTO_INCREMENT,
08	PRIMARY KEY(id),
09	 name VARCHAR(30),
10	 age INT)")
11	 or die(mysql_error()); 
12	 
13	echo "Table Created!";
14	 
15	?&amp;gt;


I want the information will show to the web page by using list view or data grid . But my problem is code of that. I try to find many codes but i didn't make it ..

Can you share me some of your codes or just guide me on how to do it. please......

it is my Pleasure ... Thanks... :D 

&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
__________________________________________________
____________&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;a href="http://www.meetzeplumbing.com"&gt;Plumber Columbia SC&lt;/a&gt;&lt;br /&gt;
&lt;a href="http://www.meetzeplumbing.com"&gt;Lexington SC Plumber&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/phpstuff/422205/422205/how-to-create-listview-in-a-web-page/</guid>
      <pubDate>Sun, 06 Mar 2011 09:10:12 -0700</pubDate>
      <category>PHP</category>
    </item>
    <item>
      <title>Re: How to create listview in a web page?</title>
      <link>http://www.programmersheaven.com/mb/phpstuff/422205/422502/re-how-to-create-listview-in-a-web-page/#422502</link>
      <description>&lt;br /&gt;
&lt;br /&gt;
One thing you might try is using a scrolling div within a table&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="sourcecode"&gt;
&amp;lt;table&amp;gt;
   &amp;lt;th&amp;gt;ID&amp;lt;/th&amp;gt;&amp;lt;th&amp;gt;Name&amp;lt;/th&amp;gt;&amp;lt;th&amp;gt;Age&amp;lt;/th&amp;gt;
   &amp;lt;tr&amp;gt;
      &amp;lt;td&amp;gt;
         &amp;lt;div style="height: 110px; overflow: auto"&amp;gt;
            &amp;lt;table&amp;gt;
               &amp;lt;?php
                  $res = mysql_query("select * from Student_Info");
                  if(mysql_num_rows($res) &amp;gt; 0) {
                     while($row = mysql_fetch_assoc($res)) {
                        echo "&amp;lt;tr&amp;gt;" .
                             "&amp;lt;td&amp;gt;" . $row['id'] . "&amp;lt;/td&amp;gt;" .
                             "&amp;lt;td&amp;gt;" . $row['name'] . "&amp;lt;/td&amp;gt;" .
                             "&amp;lt;td&amp;gt;" . $row['age'] . "&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;";
                     }
                  }
               ?&amp;gt;
            &amp;lt;/table&amp;gt;
         &amp;lt;/div&amp;gt;
      &amp;lt;/td&amp;gt;
   &amp;lt;/tr&amp;gt;
&amp;lt;/table&amp;gt;&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
It's super late for me, but hopefully it's valid code... my eyeballs are blurry.  :D  I didn't do any formatting of the table(s), but maybe something like that.                  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/phpstuff/422205/422502/re-how-to-create-listview-in-a-web-page/#422502</guid>
      <pubDate>Wed, 16 Mar 2011 23:32:28 -0700</pubDate>
      <category>PHP</category>
    </item>
  </channel>
</rss>