28, May 2012

Applying ICON imge based off condition - webmaster forum

 
Webdigity webmaster forums
[ Home | Help | Search | Forum's Shop | Archive | Login | Register | Webmaster Directory ]
Webdigity Webmaster Forums  >  Web Development  >  PhP  >  PHP classes @finalwebsites.com  >  Access_user Class (Moderator: Olaf)
Topic: Applying ICON imge based off condition
« previous next »
Pages: [1] Print

Author Topic: Applying ICON imge based off condition  (Read 1754 times)
OMG!I am geek
**
Posts: 55
366 credits
Members referred : 0


« on: Aug 01, 2006, 08:39:41 pm »

Hi All

Using Olaf's Access_User class, which works great, and I am fairly new to PHP overall. My question is, that I have setup a MySQL database for users and groups and would like to know how to add an small ICON image next to a field based off a value for a user field. Does this make sense? So if a user enters a number 1 and the field should be a 2, I want a little checkmark to appear to the right or left of that field indicating that it is flagged and incorrect

Also would like to change the background color of the field....but do not know how

Thanks
gman
I am a metal monkey!
Administrator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 5799
46391 credits
Members referred : 3



« Reply #1 on: Aug 01, 2006, 08:49:00 pm »

Topic moved to the right category.

BTW welcome to our forums gman Smiley

Trial and Error my two best teachers Cool
Join us @ facebook or twitter

Last blog : Butterfly Marketing 2.0
OMG!I am geek
**
Posts: 55
366 credits
Members referred : 0


« Reply #2 on: Aug 01, 2006, 09:08:00 pm »

Thanks Nikolas

I thought I posted in the correct category...I appreciate you correcting this so quickly ;-)

I look forward to learning a lot from this forum...just BTW Olaf has been great to work with and I am sure the other posters, as well as yourself, will be just as great to work with

Take care
gman
I am a metal monkey!
Administrator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 5799
46391 credits
Members referred : 3



« Reply #3 on: Aug 01, 2006, 09:20:09 pm »

I think you are in the right place to learn Wink

Olaf is a great person to work with, and he is very capable programmer.

Trial and Error my two best teachers Cool
Join us @ facebook or twitter

Last blog : Butterfly Marketing 2.0
Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6691
34714 credits
Members referred : 374


It's time to use PHP5!


« Reply #4 on: Aug 01, 2006, 10:50:27 pm »

HI gman,

check this to code first to understand how:
http://www.finalwebsites.com/snippets.php?id=24

and see how it works here: http://www.finalwebsites.com/demos/check_empty_form_fields.php

I think this is similar to what you try to do... if you need some better form validation then try this class:
http://www.finalwebsites.com/snippets.php?id=15

(thanks for the flowers Nick) Wink

OMG!I am geek
**
Posts: 55
366 credits
Members referred : 0


« Reply #5 on: Aug 01, 2006, 11:01:34 pm »

Olaf you strike again  Grin...this is what I am looking for and I will see if I can add in the images after I review the code...unless you already have a snippet to cover this ;-)

Thanks again for the help

gman
Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6691
34714 credits
Members referred : 374


It's time to use PHP5!


« Reply #6 on: Aug 02, 2006, 06:53:14 am »

Olaf you strike again  Grin...this is what I am looking for and I will see if I can add in the images after I review the code...unless you already have a snippet to cover this ;-)

Thanks again for the help

gman
No but the function is nearly the same like for the background color...

Trackback URI for this entry : http://www.webdigity.com/trackback.php?topic=3506
Tags : php forums mysql databases snippets Bookmark this thread : Digg Del.icio.us Dzone more....

Pages: [1] Print 
Webdigity Webmaster Forums  >  Web Development  >  PhP  >  PHP classes @finalwebsites.com  >  Access_user Class (Moderator: Olaf)
Topic: Applying ICON imge based off condition
« previous next »
Jump to:
User Area
Welcome, Guest. Please login or register.
Did you miss your activation email?
May 28, 2012, 12:46:38 pm





Login with username, password and session length

Donate to our community, and get a permanent link back to your site!

Donate to our community, and get a permanent link back to your site!






Web Design Gallery · Whois Lookup · Pagerank · Tag Browsing · Lo-fi version · Syndication · Webmaster forum history · Advertise
Developed by HumanWorks © 2005 - 2012 Webdigity webmaster community · sublime directory
Webdigity Webmaster Forums | Powered by SMF 1.0.12. © 2001-2005, Lewis Media. All Rights Reserved.