PHP forums, MySQL forums, Web Development resources

Home PageHome    PHP ResourcesTopic List    FAQFAQ    SearchSearch    MemberlistMemberlist    UsergroupsUsergroups 
 RegisterRegister
    ProfileProfile    Log in to check your private messagesLog in to check your private messages    Download the RSS Reader RSS Feed Download the RSS Reader RSS for this forum Log inLog in 

PHP Forum :: MySQL Forum :: Java Script Forum



How do I get? if ('tbl_products.visible' == 1) {

 
Post new topic   Reply to topic    WeberForums.com Forum Index -> PHP General
View previous topic :: View next topic  
Author Message
j.adams



Joined: 20 Oct 2007
Posts: 2

PostPosted: Tue Oct 30, 2007 1:51 am    Post subject: How do I get? if ('tbl_products.visible' == 1) { Reply with quote

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>
Back to top
View user's profile Send private message
Display posts from previous:   
WeberTrivia Questions WeberTrivia Questions
 Think you are smart? Prove it!. Try your skills with these questions :
 WeberTrivia QuestionsRecursive arrays and multi-dimensional arrays are one and the same. (PHP and MySQL)
 WeberTrivia QuestionsThe \"cache_dir\" tag of the squid configuration has a default of /var/spool/squid. (Linux)

WeberTrivia Questions



Post new topic   Reply to topic    WeberForums.com Forum Index -> PHP General All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
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
You cannot vote in polls in this forum




Powered by phpBB © 2001, 2005 phpBB Group
PHP Forum :: MySQL Forum :: Java Script Forum