Forums
This topic is locked
User Preferences
Posted 26 Jun 2003 19:25:09
1
has voted
26 Jun 2003 19:25:09 Jonathan Manning posted:
lo people,I want to make a website that allows a user to enter certain details, ie. Phone Number, EMail Address etc, that are then stored for other users to view.
I want to offer the user the chance to hide these details when other surfers of the site browse these details.
So how can I do that? are there any good tutes for DWMX?
ta for any help
Jon
Replies
Replied 26 Jun 2003 19:58:09
26 Jun 2003 19:58:09 Jonathan Manning replied:
its me again people, logged out and forgot my password, do the email forgotten password work on this site?
I need to be able to do it using PHP & MySql
Cheers again
jon
I need to be able to do it using PHP & MySql
Cheers again
jon
Replied 27 Jun 2003 21:41:59
27 Jun 2003 21:41:59 Robbie Laliberte replied:
My suggestion would be to include a simple binary field in your database and use it as part of an if statement on the diplay page:
If flag = yes show
I use this type of conditional display all the time. I don't know PHP, some I can't give you the exact coding...
Edited by - chariot on 29 Jun 2003 01:27:13
If flag = yes show
I use this type of conditional display all the time. I don't know PHP, some I can't give you the exact coding...
Edited by - chariot on 29 Jun 2003 01:27:13
Replied 29 Jun 2003 09:08:05
29 Jun 2003 09:08:05 niclas meyer replied:
U could do it like this:
use an uniqe post or PK to be sure u sort the right stuff for the right person.
to list users stuff:
SELECT * FROM member WHERE Id='$id' AND show='true'
$id should be stored in a cookie or session when user logged in so u always reach it? turn off variables_global though...
and show could be an bool
I hope u get i some step further =)
use an uniqe post or PK to be sure u sort the right stuff for the right person.
to list users stuff:
SELECT * FROM member WHERE Id='$id' AND show='true'
$id should be stored in a cookie or session when user logged in so u always reach it? turn off variables_global though...
and show could be an bool
I hope u get i some step further =)