There is a condition: if the admin, then the mail link is visible in the account, if not the admin, then it is not visible. How with this condition to organize it?
if (has_access($session_user_id, 1) === true)
There is a condition: if the admin, then the mail link is visible in the account, if not the admin, then it is not visible. How with this condition to organize it?
if (has_access($session_user_id, 1) === true)
function has_access($session_user_id,$page_id){ $res = mysql_query('select `user_access` from `access` where `user_id`='.$session_user_id.' and `page_id`='.$page_id); $row = mysql_fetch_object($res); return $row->user_access; }
I did not understand the question.
Source: https://ru.stackoverflow.com/questions/131257/
All Articles
$session_user_id
variable comes from, who returns what and so on. And it looks like: There is a car, the drivers are different, how to find out from the wheel radius how much it can drive on a liter of gasoline. - Artem