GithubHelp home page GithubHelp logo

nikiedev / simple-php-pdo-database-class Goto Github PK

View Code? Open in Web Editor NEW
14.0 3.0 7.0 49 KB

Safe and Simple PDO Wrapper - for developers who knows SQL.

PHP 100.00%
pdo-wrapper crud php mysql query pdo pdo-mysql

simple-php-pdo-database-class's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

simple-php-pdo-database-class's Issues

date_modified and vilter_var

What am I doing wrong to set the date_modified and date_created?
my try:
$db->update('users', ['last_name' => 'myLastName', 'first_name' => 'myFirstName'], ['id' => 7], true);
but i get this: [date_modified] => 0000-00-00 00:00:00

Is it possible to include a function in your class that filters all transferred variables? vilter_var

Getting an error

Hi, I'm trying to understand and learn php, pdo and oop'ing. But on testing this class, I'm getting an error:

Fatal error: Uncaught Error: Call to a member function getAttribute() on null in C:\xampp2\htdocs\oly-app\includes\Db.class.php:218 Stack trace: #0 C:\xampp2\htdocs\oly-app\index.php(37): lib\Db->select('spelers', Array) #1 {main} thrown in C:\xampp2\htdocs\oly-app\includes\Db.class.php on line 218

The code on line 37 is:
$player = $db->select('players', ['id' => 4]);

Some function are not working after tested

hi mate your class work fine but after i tested theoptimise and the truncate function it actualy give me a erreur .

suggestion ๐Ÿ‘
this is a lil suggestion to improve
-> add option like fetch count etc...
-> add a french documentation if you want i can make the documentation

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.