FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » Query a Array Field in MySQL
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: Query a Array Field in MySQL [message #179718 is a reply to message #179714] Tue, 27 November 2012 00:28 Go to previous message
Denis McMahon is currently offline  Denis McMahon
Messages: 634
Registered: September 2010
Karma:
Senior Member
On Mon, 26 Nov 2012 09:04:42 -0800, heitorfaria wrote:

> if ( $select == $id )
> {
> $ift_html .= "<option value='{$id}'
> selected='yes'>{$name}</option>";
> }

Aside from the issues discussed by others, you may also find it
worthwhile checking the permissible values for the selected attribute of
the option element in whatever W3C DTD relates to the the version of HTML
that you are presenting, as off the top of my head, and without looking
it up to check, I don't recall "yes" being valid for any of the flavours
of (x)html in common use at the current time, and I suspect the correct
format is either:

<option selected value="some value">some text</option>

in html, or:

<option selected="selected" value="some value">some text</option>

in xhtml.

Rgds

Denis McMahon
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Analista Programador PHP SENIOR
Next Topic: Manually create array that matches mysql_fetch_array
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sun Nov 24 13:35:31 GMT 2024

Total time taken to generate the page: 0.05110 seconds