Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Page 2 of 2 FirstFirst 12
Results 16 to 19 of 19
  1. #16
    Master Coder mlseim's Avatar
    Join Date
    Jun 2003
    Location
    Cottage Grove, Minnesota
    Posts
    9,395
    Thanks
    8
    Thanked 1,078 Times in 1,069 Posts
    The missing thing right from the beginning post was the fact that both
    'if' statements needed to be comparing to $loginsession...

    So, the long way, but easier to see ... and troubleshoot
    PHP Code:

    $flag
    =0;

    if(
    $fetch_escrow->invited == $loginsession){  
       if(
    $fetch_escrow->invitedlevel ){  
       
    $flag=1;  
       }
    }
    if(
    $fetch_escrow->username == $loginsession){  
       if(
    $fetch_escrow->usernamelevel ){  
       
    $flag=1;
       }
    }  

    if(
    $flag==1){
    echo 
    "Display Finalize Button";


    Shortened way ... harder to see:
    PHP Code:

    if ((($fetch_escrow->invited == $loginsession) && ($fetch_escrow->invitedlevel 1)) || (($fetch_escrow->username== $loginsession) && ($fetch_escrow->usernamelevel 1))) {
    // display finalize button


  2. Users who have thanked mlseim for this post:

    Dan13071992 (11-29-2012)

  3. #17
    Regular Coder
    Join Date
    Dec 2010
    Location
    Kent, UK
    Posts
    573
    Thanks
    23
    Thanked 10 Times in 10 Posts
    thats it that works like a charm thank you for that, and sorry about all the confusion lol.

    once again, thanks for the help, your an absolute star, its been playing on my mind for so long, and it is in fact, so simple lol, i cant believe i didnt think of it.
    http://360-tactics.co.uk/forum/index.php

    Crime-Wave

    please post your code wrapped in tags
    please post your PHP wrapped in tags

  4. #18
    Master Coder mlseim's Avatar
    Join Date
    Jun 2003
    Location
    Cottage Grove, Minnesota
    Posts
    9,395
    Thanks
    8
    Thanked 1,078 Times in 1,069 Posts
    It took us a long time to get there. But you learned something new hopefully.

    I really hope you learned to expand things out, and insert some scripting to help
    troubleshoot what was happening. Talking outloud (on paper) helped to find
    that part we were missing.


    .

  5. #19
    Regular Coder
    Join Date
    Dec 2010
    Location
    Kent, UK
    Posts
    573
    Thanks
    23
    Thanked 10 Times in 10 Posts
    i sure did thank you, and thank you for being a good teacher on more than one occasion
    http://360-tactics.co.uk/forum/index.php

    Crime-Wave

    please post your code wrapped in tags
    please post your PHP wrapped in tags


 
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
  •