Gtklist........

From: Date: Wed, 19 Nov 2003 09:33:07 +0000
Subject: Gtklist........
Groups: php.gtk.general 
Request: Send a blank email to php-gtk-general+get-4187@lists.php.net to get a copy of this message
i have written this functiona but it doen't work: 1)pear works; 2)connection works 3)final message works 4)i can't populate the listbox function loadrecs() { $db = &$this->db; $sql = "SELECT * FROM main"; $result = $db->query( $sql); if( $result->numRows() > 0){ while ($row = $result->fetchRow()) { $id = $row[0]; } foreach ($id as $app) $this->arWidgets["clist1"]->append($app); } MessageBox( "Records loaded ".$result->numRows() , "Information", MB_ICONINFORMATION); }//function loadrecs()

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