Jump to content

show and hide data


stuart7398

Recommended Posts

Hi. I'm looking to show and hide data in Mysql.

My site shows various profiles of people and I want to show their contact details with the last 3 letters or numbers using an '*'

When a new member joins the site they will then be shown full contact details without the '*'

 

when i enter new members details into the mysql table, how would i make showing and hiding data possible using php mysql?

 

thanks.

 

Link to comment
https://forums.phpfreaks.com/topic/97427-show-and-hide-data/
Share on other sites

Hi. I'm looking to show and hide data in Mysql.

My site shows various profiles of people and I want to show their contact details with the last 3 letters or numbers using an '*'

When a new member joins the site they will then be shown full contact details without the '*'

 

i have a members only area.

 

when i enter new members details into the mysql table, how would i make showing and hiding data to members only possible using php mysql?

 

thanks.

 

 

Link to comment
https://forums.phpfreaks.com/topic/97427-show-and-hide-data/#findComment-498500
Share on other sites

Normally such system use sessions to check if user is logged in or not. e.g. Once a user give provide username and password and submit, system verify the details and set session bit that this user has provided a valid username and password. You can check this session bit.

 

Click here to know about sessions.

Link to comment
https://forums.phpfreaks.com/topic/97427-show-and-hide-data/#findComment-498769
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.