Forums
This topic is locked
joining through query
Posted 12 Aug 2002 14:47:55
1
has voted
12 Aug 2002 14:47:55 Barry Williams posted:
heres the situation.i have a forum table and a members table.
when a post is made it inserts into the forum table. what i want to do is use the username from the members table and use that to get the info from his acount e.g. icq number, email, and anyother thing that is recorded into the members database. how would i go about doing this?
thanx in advance
also how do u do the wo tone thing that this forum uses, where every second replie is on a grey background???
Edited by - fredman1 on 12 Aug 2002 15:05:02
Replies
Replied 12 Aug 2002 18:52:18
12 Aug 2002 18:52:18 Dave Clarke replied:
Assuming your members are using the standard UD login behaviour, this creates Session("MM_Username"
so all you have to do is filter the members table by this to get that members details.
SELECT *
FROM tbleMembers
WHERE fldUsername = 'Session("MM_Username"
'

SELECT *
FROM tbleMembers
WHERE fldUsername = 'Session("MM_Username"

Replied 13 Aug 2002 12:25:33
13 Aug 2002 12:25:33 Stefan P replied:
Check the Macromedia exchange and search for "alternate rows"
dynamic.macromedia.com/bin/MM/exchange/main.jsp?product=ultradev
dynamic.macromedia.com/bin/MM/exchange/main.jsp?product=ultradev