PHP Verification Display Content

Source: Internet
Author: User
Verify your membership status
 
  Getusertype () ==10) {                                    echo "total Administrator";                            } else if ($cuserLogin->getusertype () ==5) {                                echo "channel Editor";                            }                        ? >


Querying and displaying content

 
  Setquery ("Select * from ' #@__arcatt ' ORDER by SortID ASC");         $dsql->execute ();         while ($trow = $dsql->getobject ())         {         if ($trow->att== ' j ')         {         $jumpclick = "onclick= ' showurltr () '";         }         else         {         $jumpclick = ';         }         if (Preg_match ("#". $trow->att. " # ", $arcRow [' flag '])         {         echo"){$trow->attname} [{$trow->att}] ";         }         else         {         echo '{$trow->attname} [{$trow->att}] ";         }          ? >



Description: I want to verify the membership after the execution of the query code, for example: The membership is "total Administrator" to execute the query code, if the membership is "channel Editor" is not displayed.


Reply to discussion (solution)

Direct if ($cuserLogin->getusertype () ==10) {} The code that writes the query is not good.

Direct if ($cuserLogin->getusertype () ==10) {} The code that writes the query is not good.
Thank you so much

Direct if ($cuserLogin->getusertype () ==10) {} The code that writes the query is not good.
Take a look at the points!


Direct if ($cuserLogin->getusertype () ==10) {} The code that writes the query is not good.
Take a look at the points!

Catch a friend!!!

Get back to my post!

http://bbs.csdn.net/topics/390524632
http://bbs.csdn.net/topics/390524497
http://bbs.csdn.net/topics/390521927
http://bbs.csdn.net/topics/390523291

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.