This link will explain sessions for you: http://www.sitepoint.com/print/users-php-sessions-mysql
and gives the code for implementing sign-up and log-in.
However, it sounds as if even this may be beyond you. How exactly are you registering users, and how are you identifying them?
No matter, once you have identified a registered user then run this bit of code
session_start();
//starts a session
$_SESSION['reg'] = 1;
//stores a 1 in a variable called reg in an array called $_SESSION[]
See the manual for info on $_SESSION http://uk.php.net/en/language.variables.predefined
Then when you come to query the db you use an if clause to determine which query to run
if (isset($_SESSION['reg']) {
// run full query
}
else {
//run restricted query
}
Display accordingly