How to read and write into the database (with a page) | NulledTeam UnderGround | The Best Scripts Site In The World
How to read and write into the database (with a page)

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

No permission to download

AnimeHaxor

Retro-NulledTeam
Staff member
Administrator
Registered
Joined
Nov 22, 2015
Messages
6,388
Reaction score
42,327
Points
113
Website
www.nulledteam.com
Site Script
XenForo
AnimeHaxor submitted a new resource:

How to read and write into the database (with a page) - 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 ->...
Read more about this resource...
 

AnimeHaxor

Retro-NulledTeam
Staff member
Administrator
Registered
Joined
Nov 22, 2015
Messages
6,388
Reaction score
42,327
Points
113
Website
www.nulledteam.com
Site Script
XenForo
AnimeHaxor updated How to read and write into the database (with a page) with a new update entry:

How to read and write into the database (with a page) - Part 2

Step 6 - The Controller

We want save and read in our table, right? Yes! Note that these are two actions.

To define actions, we use Controllers . But what is this thing?


Controller (XenForo_Controller) - Handle user interaction, work with the model, and ultimately select a view to render that displays UI. In an MVC application, the view only displays information; the controller handles and responds to user input and interaction. E.G.: the controller...
Read the rest of this update entry...