Skip to content
This repository has been archived by the owner on Nov 8, 2022. It is now read-only.
/ dataman_archive Public archive

Dataman is a simple database manager using PDO that simplifies back-end processing and grants with useful tools.

License

Notifications You must be signed in to change notification settings

Apter-X/dataman_archive

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

57 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dataman

Dataman is a simple database manager using PDO that simplifies back-end processing and grants with useful tools.

Instructions

  • Go to the root of your php project and git clone https://github.com/Apter-X/dataman.git.
  • Configure the connection with your database here ./database/myConfig.

How to use

  include_once './dataman/config.php';
  $dataman = new Dataman;
  $dataman->ping();

Example

Let's pretend that table represents our datatable.

users

id username is_admin
1 steave 0
2 pyck 0
3 bishop 1

With this method we can get a specific row in a table as an associative array :

  $data = $dataman->selectRow('users', 'id', '3');
  $dataman->displayRow($data);

Output:

id username is_admin
3 bishop 1

With this method we can get a specific value in a table as a string :

  $data = $dataman->selectValue('users', 'username','is_admin', '1');
  echo $data;

Output: bishop


License

Under GNU General Public License v3.0.

About

Dataman is a simple database manager using PDO that simplifies back-end processing and grants with useful tools.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Languages