Need help please

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
infoport
Forum Newbie
Posts: 2
Joined: Mon Jul 12, 2010 4:55 pm

Need help please

Post by infoport »

Hi:
I need help with making an "if" statement to show the value of a field if another field's value is 1, and not show it if it is zero.

If the value of this field: ShowAddressToPublic is zero I cannot show it, otherwise if the value is one (1) then I need to display {listing_field_StreetNumber_value} in my templates.

Please help.

Thanks.
User avatar
requinix
Spammer :|
Posts: 6617
Joined: Wed Oct 15, 2008 2:35 am
Location: WA, USA

Re: Need help please

Post by requinix »

infoport wrote:in my templates.
What are you using to handle your templates?
infoport
Forum Newbie
Posts: 2
Joined: Mon Jul 12, 2010 4:55 pm

Re: Need help please

Post by infoport »

The software I am using is "Open Realty" which is a property management software. Everything is written in php but the output is controlled by html tags where you display the fields you want by writing it like this: {field-value}.

These templates can handle php codes <?php --------- ?> so there won't be any need to mess around with the core files.
Post Reply