Re: Bringing out Data from Database
| From: | Alan Knowles | Date: | Tue, 15 Oct 2002 05:09:51 +0000 |
| Subject: | Re: Bringing out Data from Database | ||
| References: | 1 | Groups: | php.gtk.general |
| Request: | Send a blank email to php-gtk-general+get-2537@lists.php.net to get a copy of this message | ||
erbel@submedia.de wrote:
Hello All,
I am new in this list. My PHP Knowledge ist okay for webserver-side programming. I like php-gtk. But how will I bring out my data from my mySQL Database and display it, i.e.
$sql = "SELECT idid,NAME,VORNAME,PLZ,ORT FROM adressvs_lg LIMIT $x,10";
$ergebnis = mysql_query($sql,$verbindung);
while($row = mysql_fetch_object($ergebnis)) {
//eine string array ausgeben
$pListe .= $row->idid." ".$row->NAME." ".$row->VORNAME." ".$row->PLZ." ".$row->ORT."\n";
}
echo "$pListe";
All I get is the result in the command window (or terminal). How can I display it in a widget??
I hope you can help. I think my GTK is not good enough, do you know a book or a tutorial on GTK?Start with the tutorial http://gtk.php.net/manual/en/tutorials.hellow.php have a play with glade - this should give you and idea of what type of widgets are available to display things.. Regards Alan
Thank you and have a nice day, Volker