xF1 How to read and write into the database (with a page)

  • Downloading from our site will require you to have a paid membership. Upgrade to a Premium Membership today!

    Dont forget read our Rules! Also anyone caught Sharing this content will be banned. By using this site you are agreeing to our rules so read them. Saying I did not know is simply not an excuse! You have been warned.

Radio

    ven0m

    Administrator
    Staff member
    Administrator
    Moderator
    Platinum
    xenForo 2.x.x
    xenForo 1.x.x
    Contributor
    vBulletin All Access Pass
    The Chest
    Verified
    Ultra Platinum VIP
    Platinum VIP
    Gold VIP
    Silver VIP
    Premium
    Member
    Jul 17, 2005
    20,503
    7,742
    321
    localhost
    Heisenberg submitted a new resource:

    - I'll teach you how to read and write to the database using XenForo.

    Step 1 - Setting the table

    To start we must know what are the fields that we use to read/write in the database. That is, the fields that will store the information we want to read later.

    I'll start setting the table name, fields and types of each:

    Table:
    xf_simple_text

    Fields:

    simple_id -> The autoincrement field of each row.
    simple_text -> This is the field that will contain our written text. Type: varchar; Lenght: 200;
    simple_date ->...

     
    Last edited: