php101 Posted May 5, 2008 Share Posted May 5, 2008 Hi, I need to remove the display of "company name" field from the following and just display u"sername" field only. Please highlight (in red or yellow) the code to be deleted. Thanks very much. <td colspan="2"><strong><?=$profile_information['username'];?></strong><?php if ( $profile_information['company'] != NULL ) echo ' (' . $profile_information['company']. ') '; echo member_display_premium_logo ( $profile_information['id'] )?></td> <td width="19%"> </td> Link to comment https://forums.phpfreaks.com/topic/104271-delete-a-field/ Share on other sites More sharing options...
DarkWater Posted May 5, 2008 Share Posted May 5, 2008 I really wish people would at least TRY to solve their own problems... <td colspan="2"><strong><?=$profile_information['username'];?></strong><?php if ( $profile_information['company'] != NULL ) echo ' (' . $profile_information['company']. ') '; echo member_display_premium_logo ( $profile_information['id'] )?></td> <td width="19%"> </td> Link to comment https://forums.phpfreaks.com/topic/104271-delete-a-field/#findComment-533797 Share on other sites More sharing options...
benphp Posted May 5, 2008 Share Posted May 5, 2008 Displays ONLY username: <td colspan="2"><strong><?=$profile_information['username'];?></strong><?php if ( $profile_information['company'] != NULL ) echo ' (' . $profile_information['company']. ') '; echo member_display_premium_logo ( $profile_information['id'] )?></td> <td width="19%"> </td> Removes ONLY company <td colspan="2"><strong><?=$profile_information['username'];?></strong><?php if ( $profile_information['company'] != NULL ) echo ' (' . $profile_information['company']. ') '; echo member_display_premium_logo ( $profile_information['id'] )?></td> <td width="19%"> </td> Darkwater's removed the <?php by mistake - not his mistake, by the way - it happens when you highlight the code and change the color. The JS put it in the wrong place - ask me how I found out. Link to comment https://forums.phpfreaks.com/topic/104271-delete-a-field/#findComment-533809 Share on other sites More sharing options...
php101 Posted May 5, 2008 Author Share Posted May 5, 2008 some people are still learning php and do not want to take a chance with the numerous error messages and the trial and error process. yet some other people just put together a site, collect the money and then do not want to respond to the administrator of the site for maintenance because the money has already been been made! all experts needed somebody's help some time. otherwise this forum would not have been there. Link to comment https://forums.phpfreaks.com/topic/104271-delete-a-field/#findComment-533812 Share on other sites More sharing options...
DarkWater Posted May 5, 2008 Share Posted May 5, 2008 =P Yeah, don't take off the php tag. Link to comment https://forums.phpfreaks.com/topic/104271-delete-a-field/#findComment-533813 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.