Hi i have a little question
i'm displaing a database table
field : click , impression, state
in where statement i add this code for show only the row with the username
everythings work fine .
my question now is : in the collum state i have value as 1 or 0 is it possible to add a code for example if state = 1 then show ACTIVE else NOT ACTIVE
THANKS
i'm displaing a database table
field : click , impression, state
in where statement i add this code for show only the row with the username
<?php
$user =& JFactory::getUser();
echo " `name` = '{$user->username}' ";
?>
everythings work fine .
my question now is : in the collum state i have value as 1 or 0 is it possible to add a code for example if state = 1 then show ACTIVE else NOT ACTIVE
THANKS
This topic is locked and no more replies can be posted.