Idk tbh =) hard to keep track of :P
Printable View
Idk tbh =) hard to keep track of :P
I only used a better format of variables, if you'd like it so much, I'll revert to different languages, minus the accents.
haha, looks confusing. I use the same one in each function, never fails.
haha =p
I'm not using it dear! I just saw how you did the regex's and it actually taught me some things about the references you were speaking of.
=] I didn't use them, I tried the way you said, it kept outputting bad though, and I didn't feel like going through the files making them return instead of echo.
So I just devised my own way :P
Hah, indeed it was!
You can use table joins to make your life a lot easier:
It may need a bit of tinkering as I don't know your table structure.PHP Code:funciton user_type($page) {
global $logged_user;
$sql = "select userstructure.`".addslashes($page)."` from users,userstructure where users.user = '".$logged_user."' and users.usergroup = userstructure.name limit 1";
$result = mysql_query($sql);
$data = mysql_fetch_array($result);
if($data[$page]=='1') return 1; else return 0;
}