Display name of Boolean column
I have a number of Boolean columns setup. I'm not sure how to code the template in order to display the name value. Right now it's just displaying a 0 or 1. I'm a rookie at this PHP thing so any help would be appreciated.
2 Answers
Can you give some example code of how you are displaying it? The boolean fields always store a 0 or 1 in the database (hence the "boolean" type), so I'm not exactly sure what other data you are trying to get from it. Are you trying to get the column name?
Try this code for your template: <pre><code><?php if ({@amen_uta}==1) { ?> <h3>AMENITIES</h3> <div id="amenities">(put your column name or something here)</div> <?php } ?></code></pre>
Does it work?
edited Jul 17 '10 at 10:46


