An easy to use code to manage your database
Available functions:
dbInsert($id, $username, $last_message, $times_used)
well it inserts a new row as it says...
dbUpdate($id, $field, $data)
update $field with $data for $id
dbCheck($id)
check if a user (id) exists in database. returns true or false
dbFind($id)
find a user (id) from database and return its parameters
example: $username = dbFind($user_id)['username'];
findAll()
get all rows from database and return their id as an array. example:
foreach(findAll() as $user){
echo $user;
}
"id" is a unique parameter and your database should have "id" column