You are here: Re: How should i done this in PHP? « PHP Programming Language « IT news, forums, messages
Re: How should i done this in PHP?

Posted by Jerry Stuckle on 06/17/07 14:19

sooseong.ng@gmail.com wrote:
> Hi,
>
> I am a newbie and recently just delved into the scripting world of
> PHP. Currently I am doing
> a webform that consists many fields. I have three combobox with state
> selection which
> will retrieve the items from a database table called state. The
> dumbest and direct way would
> be creating a connection and querying the data each time, which means
> three connections
> connected just to querying same piece of information. I am wondering
> if it is possible to
> refactor them into using one connection to query the states, and
> assign the value to each
> combobox. Then i will need not to query thrice. Any idea?
>

Well, first of all, PHP wouldn't create connections for this - PHP is
strictly server side. But you can use PHP to generate the <option>
tags for your select boxes when you're building your page.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

 

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

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