I hope you guys dont mind me asking for a little bit off help.. im tring to create a script for geeklog.. but.. how do i created the part were it checks to see if the users is logged in ..
here is the code...----------------------------------------
<?php
require_once('lib-common.php');
$Query = mysql_query("SELECT * FROM gl_users"
;
if(uid == 'is_enabled'){
printf("Welcome %s ",mysql_result($Query,uid,"username"
);
}else{
echo "you need to register first";
}
?>
-------------------------------------------
i hope you dont mind me asking for a bit of help.. but i like to come to thoughs who knows the portal that im using.. thanx.. btw.. this script just picks a name and justs prints it out.. but i want it to.. only print out the user name that is logged in to the site.. and if they are not logged in then i want to send them to the loggin page.. (please help) thanx