It is currently Wed Feb 08, 2012 5:19 pm

All times are UTC + 2 hours [ DST ]




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: How do I get? if ('tbl_products.visible' == 1) {
PostPosted: Tue Oct 30, 2007 2:51 am 
Offline

Joined: Sat Oct 20, 2007 10:56 pm
Posts: 2
How do I get the tbl_products.visible field, which is 1 or 0, to return yes or no? Thanks Jim
Trying to make it so the user does not see 1 or blank and has to interpret what that means. As it is, I get 1 or the text field is blank.

<input
<?php
if ('tbl_products.visible' == 1) {
echo "yes";
} else {
echo "no";
};
?>
name="visible" type="text"
id="visible"
size="3"
readonly="readonly"
wdg:subtype="N1DependentField"
wdg:type="widget"
wdg:recordset="rs_products"
wdg:valuefield="visible"
wdg:pkey="id_products"
wdg:triggerobject="part_number"
/>
Visible</label>

_________________
Jim Adams


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC + 2 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 5 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to: