Personally I would do this after fetching the user id:
echo '<pre>';
var_dump($user_id);
echo '</pre>';
To check it is getting the $user_id as expected. (int)
This should be a comment, but I am lacking reputation.
Personally I would do this after fetching the user id:
echo '<pre>';
var_dump($user_id);
echo '</pre>';
To check it is getting the $user_id as expected. (int)
This should be a comment, but I am lacking reputation.