phpbar.de logo

Mailinglisten-Archive

[pear] DB::fetchRow()

[pear] DB::fetchRow()

Christoph Hermann christoph.hermann at tu-clausthal.de
Fre Jun 20 22:11:06 CEST 2003


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

- ----- Original Message ----- 
From: "Oliver Wiemer" <o.wiemer at audiovisuellemedien.de>
To: "pear" <pear at phpcenter.de>
Sent: Friday, June 20, 2003 4:59 PM
Subject: [pear] DB::fetchRow()

Hallo,

> $sql="select * from `userferien` ";
                      ^          ^
Wozu die "`"?

> $sql.="where name = '$name' and passwd = '$passwd' ";

echo $sql,'<br />';
if (DB::isError($res = $db->query($sql))) {
    echo $res->getMessage(),'<br />';
    echo $res->getDebugInfo(),'<br />';
}

> $row = $res->fetchRow();

Siehe auch: http://vulcanonet.com/soft/?pack=pear_tut

HTH
Christoph

-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 6.5.8 for non-commercial use <http://www.pgp.com>

iQA/AwUBPvNOMh/KoXbUeLFCEQJceQCeNBK4HBpqnqjtpCaFuciaK+jqyPsAoKJ6
96pjUxmFsa1HepcW1ym2ulYU
=Xsdu
-----END PGP SIGNATURE-----


php::bar PHP Wiki   -   Listenarchive