Clist - Not acting as it ought to
| From: | Martin Cameron | Date: | Tue, 20 Mar 2001 20:30:21 +0000 |
| Subject: | Clist - Not acting as it ought to | ||
| Groups: | php.gtk | ||
| Request: | Send a blank email to php-gtk+get-1014@lists.php.net to get a copy of this message | ||
Here's the array that is not acting as it should:
$titles=array("Name","Amount","Date");
$list=& new GtkClist(3,$titles);
while($row=mysql_fetch_array($res)){
$l=($row["username"].",".$row["amount"].",".$row["date"]."
\n");
print $l;
$labeltext[] .= $l;
}
$list->freeze();
$list->append($labeltext);
$list->thaw();
This is what it should return:
cameron,0.00,2001-01-02
cameron,0.00,2001-02-05
cameron,0.00,2001-02-05
CAMERON,0.00,2001-02-21
cameron,0.00,2001-02-21
cameron,0.00,2001-02-28
cameron,0.00,2001-02-28
cameron,0.00,2001-03-01
cameron,0.00,2001-03-16
But this is what it does return:
cameron,0.00,2001-01-02 cameron,0.00,2001-02-05
cameron,0.00,2001-02-05
Anybody got any ideas.
regards
Martin Cameron