Posted by Michael Fesser on 06/17/07 14:21
..oO(sooseong.ng@gmail.com)
> 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.
It would be just one connection and three queries. Not really a problem,
but of course you can do it just once and store the result in an array.
Then use that to create your combo boxes.
Micha
Navigation:
[Reply to this message]
|