Posted by Steve on 04/18/07 13:20
"Toby A Inkster" <usenet200703@tobyinkster.co.uk> wrote in message
news:ja7hf4-pec.ln1@ophelia.g5n.co.uk...
| Steve wrote:
|
| > optimally:
| >
| > $photo_category_list .= '<option value="' .
| > $row['category_id'] .
| > '">' .
| > $row['category_name'] .
| > '</option>\n";
|
|
| better still:
|
| $photo_category_list = sprintf( '<option value="%s">%s</option>'."\n",
| htmlentities($row['category_id']),
| htmlentities($row['category_name'])
| );
ok, you win. i actually think that is much more consice as you can see what
it is that you're after and how/where each input is used. i'll make note of
that.
:)
Navigation:
[Reply to this message]
|