You are here: Re: QuickFom question « PHP Programming Language « IT news, forums, messages
Re: QuickFom question

Posted by Shelly on 08/09/06 21:12

"IchBin" <weconsul@ptd.net> wrote in message
news:UzmdncUsGe-mBUTZUSdV9g@ptd.net...
>
> I am new to PHP. I am trying to create a QuickForm Select element and load
> it from a database with 'HTML_QuickForm::LoadQuery'.
>
> I figured it would be a lot easier than build all of that code by hand.
> The only thing is I can not find much info on using these objects. I can
> not read the manual for this as I can for Java API's. I am able to display
> the Select object with label but no data.
>
> Can some one point me in the right direction? I am missing something
> stupid..
>
> This is the code sniplet:
>
> $form = new HTML_QuickForm();
> $s =& $form->createElement('select','name','Catagory:' );
> $s->loadQuery($conn, 'select id, name from catagory order by name',
> 'name', 'id');
> $form->addElement($s);
> $form->display();

I don't know if this has **anything** to do with your problem, but could it
be that the data are in table "category", not "catagory"?

By the way, that is an interesting name - "I am" or "I have been".

Shelly

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация