资 源 简 介
See code:
You have table in database named "users" like this:
id | name | joindate | group | is_banned
You must create the class extends my n_mysql class like this:
class User extends n_mysql
{
var $table = "users";
var $id;
var $name;
var $joindate;
var $group;
var $is_banned;
}
to work with database simply.
Just view for this:
SELECT
$userList = new User();
$userList->find();
while ($userList->fetch()){
echo "
$userList->id"
}
...
to be continued
(PROJECT JUST CREATE SORRY FOR ERRORS)
i"m typed and correct text soon...