MySQL with PHP book [closed] - php

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
I'm a proficient programmer, and I can write PHP code without any trouble, but, I run away from MySQL, in my own projects, I use the excellent RedBean object mapper, but, for freelance projects, I have to learn MySQL, and its calls from PHP, what books what you guys recommend?
It would be great if the book suggested is available on Flipkart

I found Luke Welling's PHP and MySQL Web Development to have a good overview of the MySql functions in PHP. The aforementioned Learning PHP, MySQL, and JavaScript is excellent as well.

I found Learning PHP, MySQL, and JavaScript to be helpful, but it sounds like you are well beyond that. In that case take a look at Web Database Applications with PHP and MySQL. Both are from O'Reilly.

And once you get familiarized with basic MySQL queries, you might be excited to jump ahead and learn about some performance reading: High Performance MySQL and MySQL Performance Blog offer a lot of knowledge. Freelance projects that become popular often need database tuning.

Basic things you can read in Zend PHP5 Certification Study Guide.
And for more advanced usage Expert PHP and MySQL

Nothing's better than the PHP and MySQL documentation.
I will recommend referring the PHP manual to learn how to connect to MySQL and execute queries and read results from PHP - http://php.net/manual/en/book.mysql.php
The MySQL manual itself very efficiently explains the subject - its mainly the following query types that you'll be mostly looking for:
CREATE TABLE
ALTER TABLE
INSERT
SELECT
UPDATE
DELETE
Refer to chapters 10, 11 and 12 to get started - http://dev.mysql.com/doc/refman/5.5/en/.

Related

Code a website builder using PHP and JQUERY [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 8 years ago.
Improve this question
I am looking for suggestions, references, articles that can help me understand as how to create a website builder. My users will choose a template and then edit in the editor similar to WIX.com I am interested to offer them a platform with similar features.
If there is any article or resource available that can give me an idea as what are the pros and cons of the application.
Thanks again for your help.
This question doesn't exactly belong here but
I've built a website builder and here's the gist;
It's going to take a long time
You're describing an application that's going to take a long time to make.
A website builder is not a small application it's going to have a lot of features in order to stand out and compete with the website builders that are already in place.
You're going to have to either have a team or be good at coding yourself
This application will need to follow an architecture like MVC to be able to properly perform maintenance on your application and to keep extending it's functionallity.
You're either going to need to be good at PHP, SQL, JS and JQuery and have a lot of time on your hands or have a team to get this done with the right skill sets.
No place to walk you through
The complexity of this application would also be very high and there is no document or video that will walk you through building the entire application simply because of it's complexity.
You're going to have to come up with how to build this application yourself.
If you're going to want to be doing this make sure you're prepared and have the resources to do so, this is not just a simple little project.

Better DB: performance and scalability wise for web application [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 9 years ago.
Improve this question
I am new to web development. I wanted to know what DB will be best suited for PHP for a requirement of Web Application. Till date i have worked with Oracle database and have found it bit slow for applications which need quick response time.
I was looking into MongoDB and MySQL and couldn't decide which to pick.
Please suggest which will be the best option also if any other option will be better suited.
Thanks in advance.
I am new to web development. I wanted to know what DB will be best
suited for PHP for a requirement of Web Application. Till date i have
worked with Oracle database and have found it bit slow for
applications which need quick response time.
The answer is quite subjective as there are lot of factors need to be considered before jumping to a conclusion. I will lead you to good articles which can add some points in taking a decision.
http://www.mysqlperformanceblog.com/2013/10/22/designing-one-many-relations-mongodb-vs-mysql/
mongoDB vs mySQL -- why one is better than another in some aspects
MySQL vs MongoDB 1000 reads
There is nothing called best, every technology has its own pros and cons. It all depends upon what you are comfortable in working with. I would choose PHP/Java with MySQL anytime ahead of DOT NET with Sql Sever, just because i know the former well than latter.

Lost in how to start learning databases with php [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
I was developing a website and learning how to code at the same time. So far I just got the hang of PHP. And now i want to learn how to integrate databases with PHP. Do i start learning MySQL and its libraries? I've been reading that PDO are the way to go and I'm just lost on what order I should be learning things.
Mysql is a database. Completely different thing. One is supposed to learn basic Mysql separately, independently from PHP or any other language, practicing basic queries in console or whatever GUI client.
Once you make yourself familiar with basic SQL, you can turn to running basic queries from PHP using PDO. Only static queries without variable parts.
And finally, you may start for building dynamical queries using prepared statements. Basic info on PDO you can find here in the tag wiki
You have a very open-ended question.
However, typically with PHP the standard is MySQL so I would suggest you learn that. Furthermore, most SQL is similar in syntax. Typically when working in PHP you will use MySQL, PostgreSql or SQLlight. They all have very similar syntax.
I suggest you find a book on PHP/MySQL and study that. I typically don't endorse books, but there is a great book for beginners by Head First called, "Head First PHP & MySQL". You will learn a lot with that book, you can google it as I don't know the link.
Furthermore, php.net is your best resource for PHP-related programming.
One final tip, I suggest you learn the Object-oriented way to program in general including opening your database connection as procedural-style is going away.
Good luck! And I am happy you are going with PHP and aren't another .net drone.
(also, download cake.php or codeignighter to learn about building lightweight, well-designed frameworks)
I would start in following order:
Create basic table and input some value through phpmyadmin
example: do one for users. create table named "user" and columns "user_id","username","password", "email"
Use SELECT statements to select certain data through phpmyadmin
Build simple php page with connection and retrieve your db data
Learn about SQL injections and security issues learn Object Oriented Programming for PDO use (optional)
Start transferring your traditional mysql into PDO type
and then start learning mysql more in depth
Good Luck!

PHP/MySQL reporting library [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
Is there a known good reporting library? Before I go making my own, I was wondering if anyone who has come up with a solution I can adapt to? Basically, I have a bunch of MySQL queries that I need to "report" on. So, my in-house solution would basically be a bunch of mysql queries that need to be run through a drop down or reporting style menu and they would run the queries requested and build a little report of whatever sql query that was run. Is there something out there that already does THIS, or should I just build something in-house?
Take a look at phpreports. It sounds like what you are looking for.
Pentaho Reporting, Jasper Reports, or Eclipse BIRT can all work with MySQL. I haven't seen any PHP based reporting libraries out there. So, you can just set up one of those applications and have it communicate with your database to allow for reporting.
If you are just looking build table output from MySQL statments, try this example from jqGrid: http://www.trirand.com/blog/phpjqgrid/examples/loading_data/array_data/default.php#PHPCode
Please take a look at Windward Reports. With Windward you design the reports in Microsoft Word, Excel, or PowerPoint - so no learning curve and you can design reports that Crystal, SSRS, etc. can't even dream about. (Disclaimier - I'm the CTO at Windward.)
We have a large number of customers who use MySql for the datasource. And we have a PHP wrapper to call our Java engine.
thanks - dave
If you want something simple but effective try my PHP MySQL Reporter Script - https://jellyhound.co.uk/mysql-email-reports/ - it's extremely basic but very effective, I've had over 500 sales and pages of feedback and questions.
UPDATE: THIS IS NOW FREE
It is packaged as a simple way to generate MYSQL reports by email but is used as an effective report generator by a lot of my users.
It includes CSV and PDF attachments and can easily be scheduled using cron or any operating systems scheduling software.
I use two reporting engines for converting SQL quires to reports, I think any of them could meet your needs :
Smart Report maker : this one supports creating MySQL reports based on SQL quires , views, and tables
MYDBR : This one supports building reports based on stored procedures
I was going to vote to close this as an exact duplicate of a question which has been asked many,many times here. But the previous answers are not great.
Christopher's answer mentions 4 good products. I'd also suggest looking at Agata, phplens, Crystal reports.
I'm surprised nobody has mentioned MSAccess - it has a lot of nice functionality for developing reports, but, IME, managing the software is a major PITA, and there's little scope for scheduling / integration.

PHP / MySQL Query Builder UI with jQuery? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
So, I need to construct a front-facing query builder for a database, but I'm having trouble finding existing code for what I can't imagine is a rare requirement.
Basically, I have non-SQL fluent people needing to build queries on the fly and view the results.
I found this: http://plugins.jquery.com/project/SQL_QUERY_BUILDER (Demo: http://ksistem.com/jquery/sqlbuilderdemo.htm)
But it requires that the database schema be hardcoded, rather than be dynamically generated.
Is there a better solution that dyamically pulls the database schema into a jQuery-like UI for building and executing SELECT queries against a MySQL database?
Active Query Builder ASP.NET Edition's MS Access-like user interface is based on jQuery. It's a commercial component for ASP.NET 2.0 and higher. It can build SELECT statements for MySQL server.
Product page: http://www.activequerybuilder.com/product_asp.html
Demo: http://aspquerybuilder.net
Dynamically creating the database schema might be a problem, because of the relations between tables. You could let the users carry the burden of selecting the relations but if i look at the "non-SQL fluent people" around me.. i'd probably not do that..
Other than that, if you want to create/check the structure on the fly, you practically have to create/check it every time the script is called. Generating a maybe huge, not necessary, overhead. I`d probably rather have a script/db-admin generate/update the structure every time someone twiddles with the database.
I doubt that you'll find something that does exactly what your looking for.
Maybe pulling the structure out of a YAML file that's kept up to date by the db-admin might be better a better solution.

Categories