| | #1 |
| HyperActive Warrior Join Date: 2014
Posts: 136
Thanks: 6
Thanked 23 Times in 20 Posts
|
I need to do a bunch of CRUD for an upcoming project. I'll probably start it myself and then outsource it, but I want to pick the software stack. Grocery CRUD seems very nice; however, I'm really not crazy about dragging in a framework. |
| |
| | #2 |
| Bananas are Yellow! Registered Member War Room Member Join Date: 2013 Location: Wyoming, PA, USA
Posts: 1,046
Thanks: 2,549
Thanked 1,600 Times in 928 Posts
Blog Entries: 4 |
I've been using PDO, (if I understand your question correctly).
|
| Put MY voice on YOUR video: AwesomeAmericanAudio.com | |
| |
| | #3 | |
| HyperActive Warrior Join Date: 2014
Posts: 136
Thanks: 6
Thanked 23 Times in 20 Posts
|
I need user interface Create, Read, Update and Delete. For Example: Auto PHP Codeigniter CRUD | Grocery CRUD but that uses the Codeignitor framework. I'd prefer to use an independent library. | |
| |
| | #4 |
| Bananas are Yellow! Registered Member War Room Member Join Date: 2013 Location: Wyoming, PA, USA
Posts: 1,046
Thanks: 2,549
Thanked 1,600 Times in 928 Posts
Blog Entries: 4 |
And that's my point. You don't have to use PDO's database-independent ability; in fact, I think few people actually do. I personally only use it with MySQL. The biggest benefit to using PDO is that, when used correctly, you can avoid the potential for malicious SQL injection. |
| Put MY voice on YOUR video: AwesomeAmericanAudio.com | |
| |
| | #5 | |
| HyperActive Warrior Join Date: 2014
Posts: 136
Thanks: 6
Thanked 23 Times in 20 Posts
|
Right now this looks good Build CRUD Application with jQuery EasyUI - jQuery EasyUI I guess I could use ODP for the php/MySQL calls. | |
| |
| | #6 |
| Warrior Member Join Date: 2014 Location: Pittsburgh, PA
Posts: 11
Thanks: 3
Thanked 1 Time in 1 Post
|
If you are dragging in a framework, I recommend Yii: PHP Master | Build a CRUD App with Yii in Minutes If you are going to use EasyUI, I wouldn't use the mysql extension like they have in their examples. It is deprecated as of PHP 5.5. The manual recommendation is to use mysqli or PDO: PHP: Introduction - Manual I've used ODBC with mssql databases, but no personal experience with mysql and ODBC so I have no opinion on that one. |
| |
| | #7 | |
| Bananas are Yellow! Registered Member War Room Member Join Date: 2013 Location: Wyoming, PA, USA
Posts: 1,046
Thanks: 2,549
Thanked 1,600 Times in 928 Posts
Blog Entries: 4 |
I guess I'm saying that it's not really an either/or, but rather that each tool has its respective place, and they can all co-exist. I must admit that I'm still trying to understand what the value-add of (any) framework is, as I'm doing this all with straight PHP, and I'm not seeing any downside. | |
| Put MY voice on YOUR video: AwesomeAmericanAudio.com | ||
| |
| | #8 | |
| Warrior Member Join Date: 2014 Location: Pittsburgh, PA
Posts: 11
Thanks: 3
Thanked 1 Time in 1 Post
|
![]() Yii actually creates the tables for you and lets you plan everything with a nice interface. I've worked with it because I've had to, but I have the same philosophy. Big fan of the jQuery UI datepicker, and I use the dialog box quite often. | |
| |
| The Following User Says Thank You to jlucas For This Useful Post: |
| | #9 | |
| Bananas are Yellow! Registered Member War Room Member Join Date: 2013 Location: Wyoming, PA, USA
Posts: 1,046
Thanks: 2,549
Thanked 1,600 Times in 928 Posts
Blog Entries: 4 |
Yeah, I prefer to design the database schema manually, plus I make the entire document "compilable" by feeding it through PHP to combine my various numeric constants (mostly for column sizes and types) with the table definitions to "generate" the table creation SQL. Sprinkle in an entity relationship diagram via LucidChart, and I'm good to go! | |
| Put MY voice on YOUR video: AwesomeAmericanAudio.com | ||
| |
| | #10 |
| HyperActive Warrior Join Date: 2014
Posts: 136
Thanks: 6
Thanked 23 Times in 20 Posts
|
Ok, I did a little more research and EasyUI is mostly shit I'll never use. David, why did you pick PDO over MySQLi? The main advantage I see is that PDO has support for 12 different databases. I've never used a framework, but from my understanding the main difference is Inversion of Control InversionOfControl I found a really good discussion of PDO and SQL injection at StackExchange php - Are PDO prepared statements sufficient to prevent SQL injection? - Stack Overflow Still researching.... |
| |
| | #11 | |
| Bananas are Yellow! Registered Member War Room Member Join Date: 2013 Location: Wyoming, PA, USA
Posts: 1,046
Thanks: 2,549
Thanked 1,600 Times in 928 Posts
Blog Entries: 4 |
| |
| Put MY voice on YOUR video: AwesomeAmericanAudio.com | ||
| |
|
| Bookmarks |
| Tags |
| crud, php, system or libary |
| |