Contains the ultra-strong universal Access System queryphp released 1.0 beta, how to resolve

Source: Internet
Author: User
Contains Super Universal permission System queryphp released 1.0 beta version
Currently add inbound validation and modify ORM management methods
ORM fetch () can fetch columns after fetching data

/*
* Get a list of data results
* $key the field to retrieve key
* $p represents true for array form
* False for character combination $kk to character interval
* $KK means get the value inside the current array as field key if $p is False
* Indicates the interval
* $user->getcol (' uid ', false); Array ()
*->fetch ()->getcol ("UID"); "33,22"
* $user->getcol ("Ismar", True, ' uid '); $col [$row [' uid ']]= $row [' Ismar '];
*/

For example, we get the data as shown above
$user->getrecord ();

$user->getcol ("name"); get the name of a column make up an array
Array ("0" = "Starkwood",
"1" = "Zhang San Feng",.......)

Such an array
If $user->getcol ("ordinal", false), gets a column string assembly, note that the second argument is false, the default is true, returns the array
$str = "59,58,57,56 ..."; This way, you can use->wherein ("UID", $STR) to query
If this is the case: $user->getcol ("First Name", "true", "ordinal"), so that the array is ordinal to key, and the name is the value
Array ("Starkwood" = "
"Three" and "Zhang San Feng",
"The" "*" and "li" ...);


Csdn not give the

You can download the CHM manual to view
Http://code.google.com/p/queryphp/downloads/list

------Solution--------------------
Help Top
  • 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.