Jump to content

delete a field


php101

Recommended Posts

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

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

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

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.