Re: Gtklist........
| From: | Alessandro Sappia | Date: | Thu, 20 Nov 2003 11:42:12 +0000 |
| Subject: | Re: Gtklist........ | ||
| References: | 1 2 3 | Groups: | php.gtk.general |
| Request: | Send a blank email to php-gtk-general+get-4209@lists.php.net to get a copy of this message | ||
Il mer, 2003-11-19 alle 20:36, Andy ha scritto:
> here is the function...it works:
Well, that's nice, but what happens if
your table is just ten thousand rows ?
my tests on both win and linux says that
it terribly slow
i'm working on a code which will wrote and query just the records
Clist actually can really show on the monitor and query just what can
be seen.
> function loadrecs()
> {
> $s=mysql_connect('localhost', 'root', 'passw');
> $d=mysql_select_db('database',$s);
> $sql="SELECT * FROM main";
> $result=mysql_query($sql);
> for($i=0;$i<$numrows=mysql_num_rows($result);++$i)
> {
> $row[$i]=mysql_fetch_row($result);
> }
> foreach ($row as $app) $this->arWidgets["clist1"]->append($app);
> MessageBox( "Records loaded ".$numrows ,
> "Information",MB_ICONINFORMATION);
> }//function loadrecs()