d-marc1 / simple-mysqli Goto Github PK
View Code? Open in Web Editor NEWWrapper class for MySQLi prepared statements to make your code concise.
License: MIT License
Wrapper class for MySQLi prepared statements to make your code concise.
License: MIT License
If you made this object singleton, you could just do: SimpleMySQLi::query();
P.S. Thy not PDO?
I do not see a way to open a connection using a socket (unix).
It seems the constructor is closed to using hostname and port.
It is interesting to respect the use of a socket (allowed in mysqli).
You can also think changing the design to allow use of an externally created connection.
The component can delegate unto others, like an external framework, to host the top level configuration, handling of a connection-pool, redundancy or whatever new features appear.
So it is better suited for integration with others projects. To use this component as a thin abstraction layer on top of mysqli (connection).
$path = $obj->pathstr;
$survey = $obj->surveyno;
$ret = $db->select('SELECT * FROM land where polyPath = ? and surveyNo =?', [$path,$survey], ['%s']);
This gives me internal server error. Could someone help me?
Without using AND
clause, the query works.
$db->select('SELECT * FROM land where polyPath = ?', [$path], ['%s']);
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.