Posted by Toby A Inkster on 04/18/07 10:08
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'])
);
--
Toby A Inkster BSc (Hons) ARCS
http://tobyinkster.co.uk/
Geek of ~ HTML/SQL/Perl/PHP/Python*/Apache/Linux
* = I'm getting there!
[Back to original message]
|