Re: Gtklist........

From: Date: Wed, 19 Nov 2003 19:36:18 +0000
Subject: Re: Gtklist........
References: 1 2  Groups: php.gtk.general 
Request: Send a blank email to php-gtk-general+get-4198@lists.php.net to get a copy of this message
here is the function...it works: 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()

« previous php.gtk.general (#4198) next »