nikiedev / simple-php-pdo-database-class Goto Github PK
View Code? Open in Web Editor NEWSafe and Simple PDO Wrapper - for developers who knows SQL.
Safe and Simple PDO Wrapper - for developers who knows SQL.
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
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]);
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.