Skip to content

sarmth/PHP-Critical.Lib

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

PHP-Critical.Lib Readme

This library is being designed for ease of use, and speed of development.
By using OOP, and daisy chaining we can create simplistic code for newbies of the language.
Please Note: This library uses MySQLi.

##How to use;

###Return Basic Query Result with single row; $db->_get(table,row_id);
$db->id; // Echo the ID; Please Note: Use $db->Column_Name to access the value for said column.

###Return Basic Query Result with multiple rows; $db->_get(table,value,column);
var_dump($db->values); // Each row from the database will be an index of values IF there are more than one result.
Pleae Note: Use $db->values[index_number][column_name] to access the value of said column.

###Insert New Value within database; $db->insert(table, values); // Values are formatted as '1','2','3','4' just as they are within a MySQL Query.
Please Note: This function uses daisy chaining.
$db->insert($table1,$values)->insert($table2,"''," . $db->lastID); // Inserts one row in table1, and 1 row in table two consisting of the id number of the row inserted into table1.

Created by Sarah Allen at Critical Web Solutions - http://critical.ws/

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages