Jump to the post that solved this thread.
Solved: 4 Years, 4 Months, 2 Weeks ago DB connection with IF statement
#10
Solved: 4 Years, 4 Months, 2 Weeks ago
(2018-07-19, 11:22 AM)Wires Wrote: You can use something like this (typing via iPhone):

// Grabs user info based off UID from users table
$user = get_user($mybb->user[‘uid’]);

// Check if User’s Secret column is empty
if (empty($user[‘secret’])) {

// Call error page
error_no_permission();
};

Thanks a lot, I have to learn how to use this kind of variable: "$user = get_user($mybb->user[‘uid’]);"

But meanwhile this fixed my issue!
Reply
Jump to the post that solved this thread.


Messages In This Thread
DB connection with IF statement - by ShadowOne - 2018-07-18, 06:24 PM
RE: DB connection with IF statement - by Wires - 2018-07-18, 07:26 PM
RE: DB connection with IF statement - by Wires - 2018-07-19, 10:40 AM
RE: DB connection with IF statement - by Wires - 2018-07-19, 10:50 AM
RE: DB connection with IF statement - by Wires - 2018-07-19, 11:22 AM
RE: DB connection with IF statement - by ShadowOne - 2018-07-19, 11:29 AM
RE: DB connection with IF statement - by linguist - 2018-07-19, 11:26 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)