Displaying item if checkbox is checked

I am trying to display my featured items. I have it where you select a checkbox is you want to feature an item I am having an issue on displaying the item on the front end.

Here is what I have for the code

$SQL_GetProducts = "SELECT * FROM new_equip  WHERE `featured`='true' $SQLCat $Limit";	

Can anyone help me get this working? Basically, if the checkbox was checked when adding the item, then it will show up on a certain page. I have looked everywhere and I cannot figure out how to make selected checkboxes be displayed.

@laflair13 First things first, is your $SQL_GetProducts SQL returning rows?

Also are you familiar with SQL injection? I’m seeing $SQLCat and $Limit have the potential for that if some of it is formed by data coming from a user.

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.