note 115796 added to mysqli.overview

From: Date: Thu, 25 Sep 2014 04:30:38 +0000
Subject: note 115796 added to mysqli.overview
Groups: php.notes 
Request: Send a blank email to php-notes+get-200518@lists.php.net to get a copy of this message
mysqli can be great in some circumstances but much work has been put into PHP Portable Data Objects (PDO) which you should also consider when choosing a way to connect to your database using php. For example, PDO supports MySQL with minimal performance hit and the code your write for it will support many other databases with little or no changes. That said, the database connection code, even if you have to change a lot of it to use another database will be much less work than coding your actual database data entry and report apps. When I started creating PHP/MySQL apps years ago, I used php's native support for PHP then moved to PEAR:DB and MDB/MDB2 and finally to wizzyweb which is basically like "phpMyAdmin for Apps" to create apps as it automatically generates the PHP PDO connection code and the application code. Sure, I could code it all from scratch but I save about 90% of the time it used to take. The point is look at the total amount of time you will save by using native code vs. an abstraction layer. Most people find that programmer time is the most valuable part of the equation so anything than can save programmer time should be heavily weighted. ---- Server IP: 72.52.91.14 Probable Submitter: 216.97.219.185 ---- Manual Page -- http://php.net/manual/en/mysqli.overview.php Edit -- https://master.php.net/note/edit/115796 Del: integrated -- https://master.php.net/note/delete/115796/integrated Del: useless -- https://master.php.net/note/delete/115796/useless Del: bad code -- https://master.php.net/note/delete/115796/bad+code Del: spam -- https://master.php.net/note/delete/115796/spam Del: non-english -- https://master.php.net/note/delete/115796/non-english Del: in docs -- https://master.php.net/note/delete/115796/in+docs Del: other reasons-- https://master.php.net/note/delete/115796 Reject -- https://master.php.net/note/reject/115796 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#200518) next »