How to display corpname first, if no corpname, then username? |
PHP Code: <?php echo $this->session->userdata('corp_name') ?: $this->session->userdata('user_name'); ?> This works on the assumption that both session data returns strings, and if 'corp_name' is not given it will return an empty string. |
Messages In This Thread |
How to display corpname first, if no corpname, then username? - by christaliise - 01-19-2021, 09:12 AM
RE: How to display corpname first, if no corpname, then username? - by paulbalandan - 01-19-2021, 09:21 AM
RE: How to display corpname first, if no corpname, then username? - by christaliise - 01-19-2021, 11:39 AM
RE: How to display corpname first, if no corpname, then username? - by InsiteFX - 01-19-2021, 12:19 PM
RE: How to display corpname first, if no corpname, then username? - by christaliise - 01-20-2021, 02:41 AM
RE: How to display corpname first, if no corpname, then username? - by InsiteFX - 01-20-2021, 04:05 AM
RE: How to display corpname first, if no corpname, then username? - by christaliise - 01-20-2021, 04:27 AM
RE: How to display corpname first, if no corpname, then username? - by demyr - 01-20-2021, 07:27 AM
RE: How to display corpname first, if no corpname, then username? - by christaliise - 01-20-2021, 11:31 AM
|