This topic is locked
[SOLVED]

 help hide value

1/4/2012 12:03:52 PM
PHPRunner General questions
C
chxlover author

Guys can you help me. i have a table (customer) fields(id,cid,status).In the list page. My problem is i want to hide the value of id when the status is PAID. Please help me regarding to my problem.

C
cgphp 1/4/2012

Set the field to be hidden as Custom (http://xlinesoft.com/phprunner/docs/_view_as__settings_custom.htm) and enter this code:



if($data['status'] == 'PAID')

{

$value = '';

}
C
chxlover author 1/5/2012



Set the field to be hidden as Custom (http://xlinesoft.com/phprunner/docs/_view_as__settings_custom.htm) and enter this code:



if($data['status'] == 'PAID')

{

$value = '';

}



Sir thanks its working fine now.
This is my code



$valueStat = $data["status"];
if($valueStat=='Paid')

{

$valueID = $data["id"];

$value = "<a href=renew_station_license_add.php?copyid1=$valueID>RENEW<a/>";
}

else

{

$value = '';

}