BLHTML.org

BLHTML.org / Web Programming / BLHTML / BLHTML Manual / BLHTML funktion list / BLHTML funktion list /

 
  READ 3741 0
#READ# is a database function
Rights to use this function #READ#:
  • Data manager
  • Users with Data Manager (only current account)

  • #READ# reads all the field from one post in one table
    In order to present data on the current page.
    sers can only read from their own data account

    values:    defaults:  description:
    id$site, current accountWhich table to be read from
    field*Read field from, * read all files in the table and save them as $variables
    keyKey Field  Normally, id is the key
    value$postThe value that the current field must contain
    forceonForces to read post
    echoonWrites the SQL-case
    blhtmlblhtml=on BLHTML executes value

    Example:
    #READ# // Read from the current table where the key = $post

    #READ field(sure, phone) id=10 key=name value=Adam#
    // Read posts: sure, phone from table 10 where field name = "ADAM"

    Relations example:
    #READ value=$id#
    #READ id=10 value=$id#
    #READ id=11 value=$id#

    Read data from 3 tables: current, 10 and table 11 where the key value is the equals $id
    If field in the previous table are included in new READ is executed field value from current table.
    (The new values overwrites the existing $variables)

    $post is used to load the post in the forum:
    #READ# // or: #READ value=$post#

    If #$post# not contain values then assign $post with #SYSTEM[whoami]# #READ# Does not work inside a forum! see #SLINK# to read fields from a forum.

    More information:
  • #FIELD#
  • Variable Handling
  • #SET_CATCH_PAGE#
  • #DATA#
  • #PLOPP#
  • BLHTML forum  


    apache MySQL PHP No to software patents! BLHTML
    © 2003, 2010 BLHTML
    This page is created with BLHTML in 0.0777 seconds