Forum Moderators: coopster
The script I am using is using the following function to grab the email address of the current user from the database and display it:
<?php global $my; return $my->email;?>
What I want to do is take that and use it in a query, but I can't put it directly in the query, and I can't seem to figure out how to put it into a variable...mainly because although I've seen it before, this is my first time directly interacting and trying to modify something that looks like "$my->email". I've tried the following:
$var = $my->email;
and
$var = return $my->email;
and
$var = global $my; return $my->email;
and a few other combonations.
Of course none of them worked. Can someone please show me how to do what I want to accomplish?
Thanks.