News:

Join the Facebook Fan Page.

Main Menu

Folders in PM inbox

Started by berendhaan, January 08, 2005, 04:28:07 PM

Previous topic - Next topic

berendhaan

Is it posible to make folders in the PM inbox??
If it's posible how?

Greets Berend :)

berendhaan

Nobody??
I got this script:

$db_server = 'localhost';
$db_name = 'haandes_smf';
$db_user = 'haandes_haansmf';
$db_passwd = 'smfforum';
$database = mysql_connect($db_server, $db_user, $db_passwd) or die("Kan niet verbinden");
mysql_select_db($db_name, $database) or die("Kan geen DB vinden");
$tabel = mysql_query("SELECT ID_PM, ID_MEMBER_FROM, deletedBySender, fromName, msgtime, subject, body FROM smf_instant_messages WHERE  bewaar=1") or die("fout!!");

This select the folder for the PM but now can everybody see it
how can I fix that??

[Unknown]

You need an AND ID_MEMBER = ..., etc.

-[Unknown]

berendhaan

oke thax I will try is it  ID_MEMBER= $Context[user][link]  or is it something else?

[Unknown]

Well, there's $context['user']['id'], but that would require SSI.php or something.

-[Unknown]

berendhaan

I have got this but he gives an Error
WHERE bewaar=1 AND ID_MEMBER = '" .$Context[user][id]."'

[Unknown]

There is no $Context[user][id].  As I said, there's a $context['user']['id'].  These are very different.

What error do you get, anyway?

-[Unknown]

Advertisement: