# Php design insight

**URL:** <https://forum.kirupa.com/t/php-design-insight/218832>\
**Category:** Uncategorized\
**Created:** [March 11, 2007, 5:44pm UTC](https://forum.kirupa.com/t/php-design-insight/218832 "2007-03-11T17:44:37Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![randomagain](https://avatars.discourse-cdn.com/v4/letter/r/35a633/32.png) [@randomagain](https://forum.kirupa.com/u/randomagain)\
**Post date:** [March 11, 2007, 5:44pm UTC](https://forum.kirupa.com/t/php-design-insight/218832/1 "2007-03-11T17:44:37Z")

</div>

Hi

I want to check a few things… I have this variable…

_$query = “SELECT \* FROM sweets WHERE 1”_

now is it possible to make something like

_$query = “SELECT \* FROM sweets WHERE” + $selected_

where $selected can be changed to “sCategory=chocolate”

thanks
