Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8907387
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T02:54:12+00:00 2026-06-15T02:54:12+00:00

I have a table where there is text entered by the user or no

  • 0

I have a table where there is text entered by the user or no text entered. When the table is displayed I currently have a clickable icon that pops open a box displaying the data whether there is any data or not. I would like the clickable icon to indicate whether or not there is a value present… I have this…sort of… with another field already but it was easier because the data value was either Yes or No..see below

<td align=\"center\"><img src=backgrounds/" . $rows['fixed'] . ".png></td>

if yes then the yes.png icon is displayed, if no then the no.png icon is displayed.
Here is what I currently have for the info field

<td align=\"center\"><a href=\"page.html\" target=\"popup\"
 onClick=\"wopen('info_form.php?id=$rows[id]', 'popup', 400, 200); return false;\"><img src=\"backgrounds/info4.png\" border=\"0\"></a></td>

is there anyway to do what I want and have similar to the yes no field? I could have a default value in the default field of no and then use a no.png but how would I do a value of not no then use “something other than no”.png??
thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T02:54:13+00:00Added an answer on June 15, 2026 at 2:54 am

    do a check on the $row[‘fixed’] to see if there is any value present.

    <?php if($rows['fixed']!=''){?>
         <td align=\"center\"><img src=backgrounds/" . $rows['fixed'] . ".png></td>
    <?php }else{?>
         something else?
    <?php } ?>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a table where there is a column of type 'text'. I know
I have table with around 70 000 rows. There is 6000 rows that i
I have a couple escaped characters in user-entered fields that I can't figure out.
I currently have a user control that is used on both an /Address/Edit and
I have a table with a lot of text inputs like these: alt text
I have these text inputs in a table : <td><input type='text' name='arrondi_devis_ht' class='calcul_total' size='8'></td>
I have an item table where there is a type column. The values here
I have a table in which there are two columns : 1. import type,
I have a MySQL table where there is a 'date_added' (date) field, 'time_added' (time)
I have a dynamically generated table and for each row in the table there

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.