Skip to content

Shjpr9/PHP-Database

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 

Repository files navigation

PHP-Database

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;

}

Don't forget to change the structure wherever it says ch_stc

"id" is a unique parameter and your database should have "id" column

About

An easy to use code to manage your database

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages