Jump to content

Variables


Chewett

Recommended Posts

Copied From Murs initial Post (no code changed)

[b]Variables[/b]
Variables are what store data. In normal PHP language they are almost any string that starts with a dollar sign $. In MD script i had to change that for security reasons and make variables start with @ and have a predefined na,e. You can use only a few predefined variable names, use them wisely and they will be sufficient. You can use arrays too so you could fit an unlimited number of keys into one array if you are realy in big need of a large number of variables.

26 general use variables
@va to @vz

3 dedicated variables named more conveniently so you have things easyer to follow
They are tehnicaly the same as the 26 general use variables, they just have nice names
@tpl , to be used for template replacement values
@temp to be used for temporary things like loading values and then storing them into an other array
@log to be used for storing logs during script execution or anything else that fits the name

3 special variables
@input , this will get filled automaticaly with anything sent from a FORM (user input!)
@content, this is an array that hold each of the content sections that you separate by the content separator in the content editing field, the other field besides the script editing field.
@storage, gets loaded with data by the mds_storage() function. All data in this array gets saved to the database as a storage. Set data in the right indexes and after initiating storage or your script will get warnings if you set this var chaoticaly.

Link to post
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Forum Statistics

    16,148
    Total Topics
    176,799
    Total Posts
  • Recently Browsing

    No registered users viewing this page.

  • Upcoming Events

    No upcoming events found
  • Recent Event Reviews

×
×
  • Create New...