Re: HTML_QuickForm::loadQuery() issue
| From: | Háber János | Date: | Mon, 10 May 2004 00:34:23 +0000 |
| Subject: | Re: HTML_QuickForm::loadQuery() issue | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-12378@lists.php.net to get a copy of this message | ||
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi!
What's the error?
> I'm struggling with the loadQuery(). It just doesn't give me anything.
> Here's what I got:
>
> $formPl= new HTML_QuickForm('selectPlaylist');
> $test =&
> $formPl->addElement('select','list','Playlist:');
use try this ;)
$test =$formPl->addElement('select','list','Playlist:');
>
> $query = "select id,login,name,public from playlists order by
> login";
>
$connection declared and set to the database?
> $test->loadQuery($connection,$query,'id','name');
> $formPl->display();
>
what's the problem? (Error etc)
The select give back any result from database?
- --
Fingerprint: EC31 2ABB 041F DA6C AE7C 6B45 7962 5707 C033 1A33
Public Key: http://boci.eminens.hu/boci.asc
Key Identifier: 0xC0331A33
Key Server: wwwkeys.eu.pgp.net
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
iD8DBQFAns4VeWJXB8AzGjMRAsbwAKCq5l+99i3GXUCbkRkCn7yq7DIklQCcCjpD
nFeJGR/oVeFrCR80RYb6mRE=
=Qzrr
-----END PGP SIGNATURE-----