[!--quoteo(post=372142:date=May 7 2006, 06:00 PM:name=SemiApocalyptic)--][div class=\'quotetop\']QUOTE(SemiApocalyptic @ May 7 2006, 06:00 PM) [snapback]372142[/snapback][/div][div class=\'quotemain\'][!--quotec--] I don't think your syntax is correct here, well, I have never seen ternary expressions written like that before... [code]$mpurpose = (!empty($purpose)) ? " AND purposes = '".$purpose."'" : "";[/code] [/quote] Yes, it is correct it works, but i need help of person with knowledge of such things.