Coder Social home page Coder Social logo

msbatal / php-pdo-database-class Goto Github PK

View Code? Open in Web Editor NEW
15.0 4.0 7.0 117 KB

PHP PDO database class that utilizes PDO and prepared statements (MySQL, MariaDB, MSSQL, SQLite, etc)

License: GNU Lesser General Public License v2.1

PHP 100.00%
class mariadb mssql mysql pdo pdo-mysql pdo-php php postgresql sqlite

php-pdo-database-class's Introduction

Hi ๐Ÿ‘‹, I'm Mehmet Selcuk Batal!

Founder of Naature Technology and Sunhill Int'l Holding, Author and Instructor


  • ๐Ÿ”ญ Iโ€™m currently working on Recruss, Memjoo, Bomansy, Onducera, Lambda, Certifigate, Verifigate, Tawcu and Pellup projects

  • ๐Ÿ“ I regularly write articles on my personal web page

  • ๐Ÿ’ฌ You can ask me about JavaScript, PHP, C#, and Python

  • ๐Ÿ“„ Know about my experiences via my LinkedIn page

  • ๐Ÿ“ซ Don't hesitate to touch with me on [email protected]


Connect with me:

msbatal msbatal msbatal msbatal mehmet selรงuk batal


Languages and Tools:

bootstrap csharp css3 dotnet figma html5 javascript mssql mysql nodejs php python react sqlite

php-pdo-database-class's People

Contributors

msbatal avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar

php-pdo-database-class's Issues

no join functions

LEFT JOIN, INNER JOIN etc. no functions. Your class is very good, just what I was looking for, thank you for your efforts.

Group by question

This is my query

$select = $db->select('sales_tbl', ['sum(total) as total', 'count(*) as count', 'hour(createdAt) as label'])
->where('createdAt', 'DATE_SUB(CURDATE(), INTERVAL 24 HOUR', '>=')
->groupBy('createdAt')
->run();

I need to group by HOUR('createdAt') but it seems not possible?

New SQL Code

Hello, how can I run the following SQL code?

SELECT sum(((u.alisfiyati/b.oran)*(m.cikismiktari))) as maliyetim FROM menuler v, urunler u, menuicerikleri m, birimler b where u.id=m.urunid and u.birim=b.id and v.id=m.menuid and v.id=7

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.