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