Can't view a message through php? -


okay, have php code mail.php, if current user id doesn't match or id, show error message, tested out , use can view message, here's code :

if (!$mail['to_id'] == $account['id'] && !$mail['from_id'] == $account['id']) {     $system->message(l_error, l_mail_error_permission, './?area=forum&s=mail', l_continue); } 

but when added != instead of ==, shows error message everyone, including people sent message. know how can fix problems?

use code instead.

if ($mail['to_id'] != $account['id'] && $mail['from_id'] != $account['id']) {     $system->message(l_error, l_mail_error_permission, './?area=forum&s=mail', l_continue); } 

Comments

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

c++ - qgraphicsview horizontal scrolling always has a vertical delta -