OutFront Forums
     Home    Register     Search      Help      Login    

Sponsors
Frontpage website templates
Creative Website Templates for FrontPage, Dreamweaver, Flash, SwishMax
Shopping Cart Software
Ecommerce software integrated into Frontpage, Dreamweaver and Golive templates. No monthly fees and available in ASP and PHP versions.
Website Templates
We also have a wide selection of Dreamweaver, Expression Web and Frontpage templates as well as webmaster tools and CSS layouts.

Follow Us
On Facebook
On Twitter
RSS
Via Email

Recent Posts
Todays Posts
Most Active posts
Posts since last visit
My Recent Posts
Mark posts read

 

Turn search results on/off

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
Printable Version 

All Forums >> Web Development >> ASP, PHP, and Database >> Turn search results on/off
Page: [1]
 
 
A1234

 

Posts: 104
Joined: 10/7/2004
Status: offline

 
Turn search results on/off - 12/8/2004 12:04:08   
I have a db allowing employers to search for employees. I'm trying to figure out how to allow an employee to log in and turn their profile "off" (if they do not with to have employers view their info), and also to turn the profile back on again if they wish. Anyone have any ideas? :)
Thx
BeTheBall

 

Posts: 6502
Joined: 6/21/2002
From: West Point Utah USA
Status: offline

 
RE: Turn search results on/off - 12/8/2004 12:21:46   
Simply add a field to the database titled, Permission or something like that. I would make it a text field and then allow users to set it to Yes or No. Then in the SQL that searches the field, include in your WHERE clause, WHERE Permission = 'Yes'. That way, only records where the user has granted permission are returned.

Make sense?

_____________________________

Duane

Some people are like Slinkies . . . Not really good for anything . . . . . But they still bring a smile to your face when you push them down a flight of stairs.

(in reply to A1234)
A1234

 

Posts: 104
Joined: 10/7/2004
Status: offline

 
RE: Turn search results on/off - 12/8/2004 17:08:47   
Yes! Thanks...seems so simple now :)

(in reply to BeTheBall)
Page:   [1]

All Forums >> Web Development >> ASP, PHP, and Database >> Turn search results on/off
Page: [1]
Jump to: 1





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts