Jump to the post that solved this thread.
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Solved: 9 Years, 2 Weeks ago [PHP] Can't able to get uid with $mybb
#1
Solved: 9 Years, 2 Weeks ago
Why I can't get $mybb variable in function ?
<?
define("IN_MYBB", 1);
require "../global.php";

global $mybb;
function getid()
{
$userid=$mybb->user[uid];
return $userid;
}

echo getid();

?>
www.vubscs.com ( A new way of Mybb)
Jump to the post that solved this thread.


Messages In This Thread
[PHP] Can't able to get uid with $mybb - by sunjava1 - 2012-11-18, 06:43 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)