This topic is locked

check yes.gif and check_no.gif

2/4/2009 12:57:09 PM
PHPRunner General questions
N
nickditrolio author

This question was in ASPRunner and I'm using PHPRunner so I thought I'd ask for a response here:

I want to use the red cross.gif if my field=0 , the greenok.gif if my field=1 and no checkbox if the value is null

what syntax do I use and where would I put it?

For example this is on a list page:

if($value["field1]==1)
if($value["field1]==0)

[color=#808000]//place the redcross.gif here

else

//place nothing

J
Jane 2/5/2009

Nick,
here is a sample:

if($value==1)

$value = "<img src=\"greenok.gif\">";

else

if($value==0)

$value = "<img src=\"redcross.gif\">";

else

$value = "";

N
nickditrolio author 2/5/2009

Nick,

here is a sample:


Thank you so much..could you tell me where to place it? Does it go in the view as-> custom or in a code snippet?

Nick

J
Jane 2/5/2009

Nick ,

Does it go in the view as-> custom or in a code snippet?



Yes.