CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> Archive -> GotoCode Archive

 How to display multiple columns in Listbox control

Print topic Send  topic

Author Message
NS
Posted: 10/02/2002, 2:10 PM

I am using Listbox control on one of the form. Is there any way to display three columns' content instead of one in that Listbox control?
Example: Prefer to display First Name, Middle Name and Last Name columns from the same table.
Using PHP, MySQL.
Thank you.
NS
george l.
Posted: 10/02/2002, 3:58 PM

You should create a listbox and use custom SQL to create a concatonated SQL statement.

Example:

I have this concatonated SQL Statement in my SQL section of my listbox
SELECT vprod_id, vproduct||' - '||'Version'||' '||vprodversion||' / '||'Is Included = '||is_included as concatprodver from vendorproducts
where vprod_id not in
(select vprod_id from relvendassign where rel_id = {rid})

My rows can show up like this:

Orbix - Version 2.3 / Is Included = Yes

Of course this is done with Oracle. I don't know if MySQL supports concatonation operators.

Hope this helps!
g.

   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

PHP Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.