faqts

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

5 of 6 people (83%) answered Yes
Recently 5 of 6 people (83%) answered Yes

Entry

how to print a row with color as per the RESULT. say if result is PASS it should be green else Red

May 12th, 2008 21:07
i can do it, suresh kc, ssp2000 ssp2000,


you have to learn if statement for that
echo '<table><tr>';
if ($RESULT >= 50) {
  echo '<td bgcolor="green">PASS</td>';
} else {
  echo '<td bgcolor="red">FAIL</td>';
}
echo '</tr></table>';
http://www.stupidarticles.com
http://www.halazona.com
http://www.shikapika.com
http://www.stakoza.com
http://www.uploadarticles.com
http://www.ganazat.com
http://www.damima.com
http://www.tarabiza.com
http://www.articlesxarticles.com
http://www.articlesfreedirectory.com