Php verification display content

Source: Internet
Author: User
Php verification display content verification member identity
 GetUserType () = 10) {echo "";} else if ($ cuserLogin-> getUserType () = 5) {echo "" ;}?>


Query and display 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 member identity before executing the query code. for example, if the member identity is "administrator", the query code is executed, if the member identity is "channel editor", nothing is displayed.


Reply to discussion (solution)

Directly if ($ cuserLogin-> getUserType () = 10) {}, it is not good to write the query code. if it is not, it will not be executed.

Directly if ($ cuserLogin-> getUserType () = 10) {}, it is not good to write the query code. if it is not, it will not be executed.
Thank you very much.

Directly if ($ cuserLogin-> getUserType () = 10) {}, it is not good to write the query code. if it is not, it will not be executed.
Points at a glance!


Directly if ($ cuserLogin-> getUserType () = 10) {}, it is not good to write the query code. if it is not, it will not be executed.
Points at a glance!

Grab a friend !!!

Go and reply 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.