Ask a Question related to ASP Database, Design and Development.
-
+FarmerPickles #1
Site message
I would like to like for members to leave other members private messages on
my site. Could someone point me in the right direction for writting
something like this?
Thanks
Jeff
+FarmerPickles Guest
-
Email Site-Wide Error message (with code snippet)
I would like to create a Site-Wide error message that is emailed to the administrator. I have a lot of the information I want to put in but I can... -
how to get error message when you using Site-wide ErrorHandler
Hi, Right now, I am try to setting coldfusion 5 using Site-wide Error Handler. Instead of using try catch to report error. however, it just... -
***This message may contains virus****Delete the message***Taste this correction pack for MS Internet Explorer
"If you receive an e-mail that claims to contain software from Microsoft, do not run the attachment. The safest course of action is to delete the... -
HELP-Strange message when my site load on net
I have created my website using Flash 5. When I go to my site, 80% of the time I get a Windows message: The messsage box header says " Sytem... -
Aaron [SQL Server MVP] #2
Re: Site message
Well, do you have a table to store messages? If so, I imagine it would look
something like this:
CREATE TABLE PrivateMessages
(
MessageID INT IDENTITY(1,1) PRIMARY KEY,
From INT NOT NULL FOREIGN KEY REFERENCES Users(UserID),
To INT NOT NULL FOREIGN KEY REFERENCES Users(UserID),
Message VARCHAR(8000) NOT NULL,
Read BIT NOT NULL DEFAULT 0,
dt SMALLDATETIME NOT NULL DEFAULT GETDATE()
-- maybe CHECK (From != To)?
)
Then, when a user sends a message, he picks a User (from which you can
derive UserID):
INSERT PrivateMessages(From, To, Message)
SELECT <MyUserID>, <TheirUserID>, <message>
When a user wants to see all of his messages:
SELECT MessageID, From, Message, dt
FROM PrivateMessages
WHERE To = <MyUserID>
When a user wants to see his unread messages:
SELECT MessageID, From, Message, dt
FROM PrivateMessages
WHERE To = <MyUserID>
AND Read = 0
When the user reads a message:
UPDATE PrivateMessages SET read = 1 WHERE MessageID = <MessageID>
These kinds of issues are covered fairly well in ASP-db tutorials you'll
find all over the web, btw...
--
[url]http://www.aspfaq.com/[/url]
(Reverse address to reply.)
"+FarmerPickles" <gig_bam_takemeout_@verizon.net> wrote in message
news:O8E5uiwTEHA.3768@TK2MSFTNGP11.phx.gbl...on> I would like to like for members to leave other members private messages> my site. Could someone point me in the right direction for writting
> something like this?
> Thanks
> Jeff
>
>
Aaron [SQL Server MVP] Guest
-
+FarmerPickles #3
Re: Site message
ok thanks... i tried to do a search.. but didn't find anything :(
i will try what you posted
"Aaron [SQL Server MVP]" <ten.xoc@dnartreb.noraa> wrote in message
news:%23VIYHswTEHA.2128@TK2MSFTNGP11.phx.gbl...look> Well, do you have a table to store messages? If so, I imagine it would> something like this:
>
> CREATE TABLE PrivateMessages
> (
> MessageID INT IDENTITY(1,1) PRIMARY KEY,
> From INT NOT NULL FOREIGN KEY REFERENCES Users(UserID),
> To INT NOT NULL FOREIGN KEY REFERENCES Users(UserID),
> Message VARCHAR(8000) NOT NULL,
> Read BIT NOT NULL DEFAULT 0,
> dt SMALLDATETIME NOT NULL DEFAULT GETDATE()
> -- maybe CHECK (From != To)?
> )
>
> Then, when a user sends a message, he picks a User (from which you can
> derive UserID):
>
> INSERT PrivateMessages(From, To, Message)
> SELECT <MyUserID>, <TheirUserID>, <message>
>
> When a user wants to see all of his messages:
>
> SELECT MessageID, From, Message, dt
> FROM PrivateMessages
> WHERE To = <MyUserID>
>
> When a user wants to see his unread messages:
>
> SELECT MessageID, From, Message, dt
> FROM PrivateMessages
> WHERE To = <MyUserID>
> AND Read = 0
>
> When the user reads a message:
>
> UPDATE PrivateMessages SET read = 1 WHERE MessageID = <MessageID>
>
> These kinds of issues are covered fairly well in ASP-db tutorials you'll
> find all over the web, btw...
>
> --
> [url]http://www.aspfaq.com/[/url]
> (Reverse address to reply.)
>
>
>
>
> "+FarmerPickles" <gig_bam_takemeout_@verizon.net> wrote in message
> news:O8E5uiwTEHA.3768@TK2MSFTNGP11.phx.gbl...> on> > I would like to like for members to leave other members private messages>> > my site. Could someone point me in the right direction for writting
> > something like this?
> > Thanks
> > Jeff
> >
> >
>
+FarmerPickles Guest
-
Jeff Cochran #4
Re: Site message
On Thu, 10 Jun 2004 12:33:36 -0400, "+FarmerPickles"
<gig_bam_takemeout_@verizon.net> wrote:
Might look at some of the forum scripts, the messaging functions will>I would like to like for members to leave other members private messages on
>my site. Could someone point me in the right direction for writting
>something like this?
be there and most have a private setting. Should at least give you
some ideas.
Jeff
Jeff Cochran Guest
-
+FarmerPickles #5
Re: Site message
Ok. I currently use snitz forums.. which i think is wonderful, but haven't
seen that feature on it. I will look into this further
thanks Jeff
Jeff
"Jeff Cochran" <jeff.nospam@zina.com> wrote in message
news:40c8d053.74068344@msnews.microsoft.com...on> On Thu, 10 Jun 2004 12:33:36 -0400, "+FarmerPickles"
> <gig_bam_takemeout_@verizon.net> wrote:
>> >I would like to like for members to leave other members private messages>> >my site. Could someone point me in the right direction for writting
> >something like this?
> Might look at some of the forum scripts, the messaging functions will
> be there and most have a private setting. Should at least give you
> some ideas.
>
> Jeff
+FarmerPickles Guest



Reply With Quote

