Page 2 of 2 FirstFirst 12
Results 11 to 16 of 16
  1. #11
    Join Date
    Sep 2006
    Location
    Evanston, Illinois.
    Posts
    2,361
    Tokens
    0

    Latest Awards:

    Default

    Idk tbh =) hard to keep track of
    How could this hapen to meeeeeeeeeeeeeee?lol.

  2. #12
    Join Date
    Oct 2006
    Location
    Peterborough, UK
    Posts
    3,855
    Tokens
    216

    Latest Awards:

    Default

    Quote Originally Posted by Housekeeping View Post
    If the stupid sessions goes bazackwhap, it throws out a nice little error about sending **** before the sessions headers already sent all that meatwhack.

    I showed him my source code to something, and now his _a, _n, looks like mine.
    I showed you my basic template engine and you're using code snippets from it for commercial purposes but I don't complain '____'


    visit my internet web site on the internet
    http://dong.engineer/
    it is just videos by bill wurtz videos you have been warned

  3. #13
    Join Date
    Sep 2006
    Location
    Evanston, Illinois.
    Posts
    2,361
    Tokens
    0

    Latest Awards:

    Default

    I only used a better format of variables, if you'd like it so much, I'll revert to different languages, minus the accents.
    How could this hapen to meeeeeeeeeeeeeee?lol.

  4. #14
    Join Date
    Mar 2008
    Posts
    5,108
    Tokens
    3,780

    Latest Awards:

    Default

    Quote Originally Posted by Reconix View Post
    lol, it's better than what I used to have:

    $query
    $result
    $row
    $querya
    $resulta
    $row
    $queryasox
    $resultex
    $rowarc

    I changed the language almost.
    haha, looks confusing. I use the same one in each function, never fails.

    Quote Originally Posted by Bojangles View Post
    Some people never change I guess:rolleyes:
    haha =p

    Quote Originally Posted by Lolcopters View Post
    I showed you my basic template engine and you're using code snippets from it for commercial purposes but I don't complain '____'
    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

  5. #15
    Join Date
    Sep 2006
    Location
    Evanston, Illinois.
    Posts
    2,361
    Tokens
    0

    Latest Awards:

    Default

    Hah, indeed it was!
    How could this hapen to meeeeeeeeeeeeeee?lol.

  6. #16
    Join Date
    Jun 2005
    Posts
    2,688
    Tokens
    0

    Latest Awards:

    Default

    You can use table joins to make your life a lot easier:

    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;

    It may need a bit of tinkering as I don't know your table structure.

Page 2 of 2 FirstFirst 12

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •