Forum

HomeHomeCoreCoreGeneralGeneralSwitching css from databaseSwitching css from database
Previous
 
Next
New Post
6/16/2014 11:24 AM
 

Good morning every one.


I have this trouble. I want to change a css class comparing an attribbute from my query. 


Ex. if MyTable.Status = ok then use css class Ok 

else use css class No


this for displaying that string (MyTable.Status) in a pretty way for users. I hope you can help me.


New Post
6/16/2014 2:24 PM
 
In "MyTable" do you mean a column value?

Kevin M Schreiner
Open Web Studio
PayPal - The safer, easier way to pay online!
New Post
6/16/2014 3:02 PM
 
Hi Kevin. Yes I mean a column value :P MyTable.Status could be somethig as: "Ready, In process, Created... etc" it is a varchar Thanks :D
New Post
6/16/2014 5:13 PM
 
If its just in the template, it would look like this:
Whatever

Kevin M Schreiner
Open Web Studio
PayPal - The safer, easier way to pay online!
New Post
6/16/2014 5:50 PM
 
mmm well thanks
Previous
 
Next
HomeHomeCoreCoreGeneralGeneralSwitching css from databaseSwitching css from database


 

New York, NY • Baltimore, MD • Vienna, VA • St. Louis, MO • Seattle, WA • info@openwebstudio.com

Bookmark & Share Bookmark and Share