Mailinglisten-Archive |
Oh, mein Fehler. Natürlich nicht Object, sondern mysql_fetch_assoc bzw.
mysql_fetch_array.
On Sat, Jul 26, 2008 at 12:17, Alex Emken <php at emken.com> wrote:
> Dennis Morhardt wrote:
> > Nichts besonderes:
> >
> > $db = PoS_Load::database();
> > $data = $db->query("SELECT * FROM milestones");
> > var_dump($db->fetchArray($data));
>
> Schau mal in die Doku:
>
> http://www.php.net/mysql_fetch_object
>
> Beispiel:
> $result = mysql_query("select * from mytable");
> while ($row = mysql_fetch_object ($result)) {
> echo $row->user_id;
> echo $row->fullname;
> }
>
> mysql_fetch_object liefert jeweils nur _eine_ Zeile.
>
> Gruß
> Alex
> --
> ** Allgemeine deutschsprachige PHP-Liste: php at phpbar.de **
> Informationen: http://www.phpbar.de
> http://lists.phpbar.de/mailman/listinfo/php
>
php::bar PHP Wiki - Listenarchive