Is it posible to make folders in the PM inbox??
If it's posible how?
Greets Berend :)
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??
You need an AND ID_MEMBER = ..., etc.
-[Unknown]
oke thax I will try is it ID_MEMBER= $Context[user][link] or is it something else?
Well, there's $context['user']['id'], but that would require SSI.php or something.
-[Unknown]
I have got this but he gives an Error
WHERE bewaar=1 AND ID_MEMBER = '" .$Context[user][id]."'
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]