Does anyone know of a framework for php where I can easily access a MySQL database?
Printable View
Does anyone know of a framework for php where I can easily access a MySQL database?
generally speaking, it's built in:
http://us2.php.net/manual/en/book.mysql.php
-tg
Yes, PHP has built in MySQL Functions. You can use the regular MySQL Functions, MySQL Improved, or PDO.
This is what you wanted right?
No offence, but your question sounds so noob, for all I know you meant an interface to your mysql databases. That would be phpMyAdmin
If for coding, go with mysqli (mysql improved) ... faster, and a pain to first start with mysql functions and then lter try get used to mysqli
I meant to ask if there is a framework with built in security, like hybernate for java. Im a noob to PHP but not a noob to programming. Doot.
You can use MySQLi which is a class for use with MySQL, this has some built in security features to help you prevent SQL injection.Quote:
Originally Posted by xxarmoxx
With PHP, it is up to the programmer to keep things secure mostly, have a look at visualAds post on PHP security (link in your other thread). If you use some common sense, and tips found in PHP security articles online, you'll be fine.
Hibernate is an object–relational mapping and data persistence layer for Java and .NET. I don't like it, I don't like O–R mappers in general, and I suggest that you stay well clear of them and instead implement your own (sensible) data access layer. Having said that, O–R mappers for PHP do exist; Wikipedia has a list of them.
The OR layer (if any) that is used is usually quite specific given the requirements of a project and may include concepts from one or more design patterns. I am yet to find a single pattern that would meet the needs of every project, so careful consideration is required at the planning stage and a pre built mapper should only be considered if it meets these requirements and does not affect the scalability of the solution.